Microsoft DirectX 9.0 SDK Update (October 2004)

UnsafeNativeMethods.Quaternion.ToAxisAngle Method

Language:

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

Computes a quaternion's axis and angle of rotation.

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 Sub ToAxisAngle( _
    ByVal pQuat As Quaternion, _
    ByVal pAxis As Vector3, _
    ByVal pAngle As Single _
)
C# public static void ToAxisAngle(
    Quaternion pQuat,
    Vector3 pAxis,
    float pAngle
);
Managed C++ public: static void ToAxisAngle(
    Quaternion pQuat,
    Vector3 pAxis,
    float pAngle
);
JScript .NET public static function ToAxisAngle(
    pQuat : Quaternion,
    pAxis : Vector3,
    pAngle : float
);

Parameters

pQuat Microsoft.DirectX.Quaternion. Source Quaternion structure. See Remarks.
pAxis Microsoft.DirectX.Vector3. A Vector3 structure that identifies the quaternion's axis of rotation.
pAngle System.Single. A Single Leave Site value that identifies the quaternion's angle of rotation, in radians.

Remarks

This method requires unit quaternions.

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