![]() |
![]() |
![]() |
UnsafeNativeMethods.Quaternion.Squad Method |
Language: |
Interpolates between quaternions, using spherical quadrangle interpolation.
Visual Basic .NET Public Shared Function Squad( _
ByVal pOut As Quaternion, _
ByVal pQuat1 As Quaternion, _
ByVal pQuata As Quaternion, _
ByVal pQuatb As Quaternion, _
ByVal pQuatc As Quaternion, _
ByVal t As Single _
) As QuaternionC# public static Quaternion Squad(
Quaternion pOut,
Quaternion pQuat1,
Quaternion pQuata,
Quaternion pQuatb,
Quaternion pQuatc,
float t
);Managed C++ public: static Quaternion Squad(
Quaternion pOut,
Quaternion pQuat1,
Quaternion pQuata,
Quaternion pQuatb,
Quaternion pQuatc,
float t
);JScript .NET public static function Squad(
pOut : Quaternion,
pQuat1 : Quaternion,
pQuata : Quaternion,
pQuatb : Quaternion,
pQuatc : Quaternion,
t : float
) : Quaternion;
pOut Microsoft.DirectX.Quaternion. A Quaternion structure that is the result of the spherical quadrangle interpolation. pQuat1 Microsoft.DirectX.Quaternion. Source Quaternion structure. pQuata Microsoft.DirectX.Quaternion. Source Quaternion structure. pQuatb Microsoft.DirectX.Quaternion. Source Quaternion structure. pQuatc Microsoft.DirectX.Quaternion. Source Quaternion structure. t System.Single. A Single value that indicates how far to interpolate between the quaternions.
Microsoft.DirectX.Quaternion . A Quaternion structure that is the result of the spherical quadrangle interpolation.
This method uses the following sequence of spherical linear interpolation operations.
Slerp(Slerp(pQuat1, pQuatc, t), Slerp(pQuata, pQuatb, t), 2t(1 - t))
The return value for this method is the same value returned in the pOut parameter. Resultantly, the Squad method can be used as a parameter for another method.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center