Click or drag to resize

QuaternionSlerp Method (Quaternion, Quaternion, Double)

Spherical interpolation between two Quaternions

This is most commonly used to find an intermediate rotation between between a start and an end rotation. When t = 0 returns a. When t = 1 returns b. When t = 0.5 returns a rotation "midway" between a and b.

Namespace:  Microsoft.DirectX
Assembly:  Demo3D.Common (in Demo3D.Common.dll) Version: 18.04.00
Syntax
C#
public static Quaternion Slerp(
	Quaternion a,
	Quaternion b,
	double t
)

Parameters

a
Type: Microsoft.DirectXQuaternion
Start Quaternion
b
Type: Microsoft.DirectXQuaternion
End Quaternion
t
Type: SystemDouble
Interpolant

Return Value

Type: Quaternion
Interpolated Quaternion
See Also