Microsoft DirectX 9.0 SDK Update (October 2004)

UnsafeNativeMethods.Quaternion.Squad Method

Language:

Note: This documentation is preliminary and is subject to change.

Interpolates between quaternions, using spherical quadrangle 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 .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 Quaternion
C# 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;

Parameters

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 Leave Site value that indicates how far to interpolate between the quaternions.

Return Value

Microsoft.DirectX.Quaternion . A Quaternion structure that is the result of the spherical quadrangle interpolation.

Remarks

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.

See Also


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center