UnsafeNativeMethods.Quaternion.Slerp(Quaternion,Quaternion,Quaternion,Single) Method (Microsoft.DirectX)
Interpolates between two quaternions, using spherical linear interpolation.
Note: For programming in Microsoft Visual Basic .NET or Microsoft JScript .NET, use the equivalent method in the Microsoft.DirectX structures.
Definition
Visual Basic Public Shared Function Slerp( _
ByVal pOut As Quaternion, _
ByVal pQuat1 As Quaternion, _
ByVal pQuat2 As Quaternion, _
ByVal t As Single _
) As QuaternionC# public static Quaternion Slerp(
Quaternion pOut,
Quaternion pQuat1,
Quaternion pQuat2,
float t
);C++ public:
static Quaternion Slerp(
Quaternion pOut,
Quaternion pQuat1,
Quaternion pQuat2,
float t
);JScript public static function Slerp(
pOut : Quaternion,
pQuat1 : Quaternion,
pQuat2 : Quaternion,
t : float
) : Quaternion;
Parameters
pOut Microsoft.DirectX.Quaternion
A Quaternion structure that is the result of the interpolation.pQuat1 Microsoft.DirectX.Quaternion
Source Quaternion structure.pQuat2 Microsoft.DirectX.Quaternion
Source Quaternion structure.t System.Single
A Single value that indicates how far to interpolate between the quaternions.
Return Value
Microsoft.DirectX.Quaternion
A Quaternion structure that is the result of the interpolation.
Remarks
The return value for this method is the same value returned in the pOut parameter. This allows you to use the Slerp method as a parameter for another method.
See Also