Share via


Quaternion.SquadSetup Method

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
)
public static void SquadSetup (
    /** @ref */ Quaternion outA, 
    /** @ref */ Quaternion outB, 
    /** @ref */ Quaternion outC, 
    Quaternion q0, 
    Quaternion q1, 
    Quaternion q2, 
    Quaternion q3
)
JScript does not support passing value-type arguments by reference.

Parameters

  • outA
    A Quaternion structure, passed by reference, that represents outA.
  • outB
    A Quaternion structure, passed by reference, that represents outB.
  • outC
    A Quaternion structure, passed by reference, that represents outC.
  • q0
    A Quaternion structure that represents the q0 input control point.
  • q1
    A Quaternion structure that represents the q1 input control point.
  • q2
    A Quaternion structure that represents the q2 input control point.
  • q3
    A Quaternion structure that represents the q3 input control point.

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

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

Platforms

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

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

Version Information

.NET Compact Framework

Supported in: 2.0

See Also

Reference

Quaternion Structure
Quaternion Members
Microsoft.WindowsMobile.DirectX Namespace