Quaternion.Squad Method |
Language: |
Interpolates between quaternions, using spherical quadrangle interpolation.
Visual Basic Public Shared Function Squad( _
ByVal q1 As Quaternion, _
ByVal a As Quaternion, _
ByVal b As Quaternion, _
ByVal c As Quaternion, _
ByVal t As Single _
) As QuaternionC# public static Quaternion Squad(
Quaternion q1,
Quaternion a,
Quaternion b,
Quaternion c,
float t
);C++ public:
static Quaternion Squad(
Quaternion q1,
Quaternion a,
Quaternion b,
Quaternion c,
float t
);JScript public static function Squad(
q1 : Quaternion,
a : Quaternion,
b : Quaternion,
c : Quaternion,
t : float
) : Quaternion;
q1 Microsoft.DirectX.Quaternion
Source Quaternion structure.a Microsoft.DirectX.Quaternion
Source Quaternion structure.b Microsoft.DirectX.Quaternion
Source Quaternion structure.c 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(q1, c, t), Slerp(a, b, t), 2t(1 - t))
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center