Click or drag to resize

QuaternionSlerp Method (Quaternion, Quaternion, Single)

Spherical interpolation between two Quaternions

This is most commonly used to find an intermediate rotation 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: 11.0.0.7658
Syntax
C#
public static Quaternion Slerp(
	Quaternion a,
	Quaternion b,
	float t
)

Parameters

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

Return Value

Type: Quaternion
Interpolated Quaternion
See Also