Quaternion.SquadSetup Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Sets up control points for spherical quadrangle interpolation.

Namespace:  Microsoft.WindowsMobile.DirectX
Assembly:  Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)

Syntax

'Declaration
Public Shared Sub SquadSetup ( _
    ByRef outA As Quaternion, _
    ByRef outB As Quaternion, _
    ByRef outC As Quaternion, _
    q0 As Quaternion, _
    q1 As Quaternion, _
    q2 As Quaternion, _
    q3 As Quaternion _
)
'Usage
Dim outA As Quaternion
Dim outB As Quaternion
Dim outC As Quaternion
Dim q0 As Quaternion
Dim q1 As Quaternion
Dim q2 As Quaternion
Dim q3 As Quaternion

Quaternion.SquadSetup(outA, outB, outC, _
    q0, q1, q2, q3)
public static void SquadSetup(
    ref Quaternion outA,
    ref Quaternion outB,
    ref Quaternion outC,
    Quaternion q0,
    Quaternion q1,
    Quaternion q2,
    Quaternion q3
)
public:
static void SquadSetup(
    Quaternion% outA, 
    Quaternion% outB, 
    Quaternion% outC, 
    Quaternion q0, 
    Quaternion q1, 
    Quaternion q2, 
    Quaternion q3
)
static member SquadSetup : 
        outA:Quaternion byref * 
        outB:Quaternion byref * 
        outC:Quaternion byref * 
        q0:Quaternion * 
        q1:Quaternion * 
        q2:Quaternion * 
        q3:Quaternion -> unit 

Parameters

Remarks

This method takes four control points, which are supplied to the inputs q0, q1, q2, and q3 and alters their values to find a curve that flows along the shortest path. The values of q0, q2, and q3 are calculated as shown below.

q0 = |q0 + q1|

Having calculated the new q values, the values for outA, outB, and outC are calculated as shown below.

outA = q1 * exp[–0.25 *( Ln[Exp(q1)*q2] + Ln[Exp(q1)*q0] ) ]

outB = q2 * exp[–0.25 *( Ln[Exp(q2)*q3] + Ln[Exp(q2)*q1] ) ]

outC = q2

The preceding examples use the Ln and Exp methods.

.NET Framework Security

Platforms

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Compact Framework

Supported in: 3.5, 2.0

See Also

Reference

Quaternion Structure

Quaternion Members

Microsoft.WindowsMobile.DirectX Namespace