Share via


UnsafeNativeMethods.Quaternion.Squad(Quaternion,Quaternion,Quaternion,Quaternion,Quaternion,Single) Method (Microsoft.DirectX)

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 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
);
C++ public:
static Quaternion Squad(
    Quaternion pOut,
    Quaternion pQuat1,
    Quaternion pQuata,
    Quaternion pQuatb,
    Quaternion pQuatc,
    float t
);
JScript 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 SingleLeave 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. This allows you to use the Squad method as a parameter for another method.

See Also