Click or drag to resize

QuaternionSlerp(Quaternion, Quaternion, Double) Method

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: 19.00.00
Syntax
C#
public static Quaternion Slerp(
	Quaternion a,
	Quaternion b,
	double t
)

Parameters

a  Quaternion
Start Quaternion
b  Quaternion
End Quaternion
t  Double
Interpolant

Return Value

Quaternion
Interpolated Quaternion
See Also