Microsoft DirectX 9.0 SDK Update (October 2004)

Quaternion.ToAxisAngle Method

Language:

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

Computes a quaternion's axis and angle of rotation.

Definition

Visual Basic .NET Public Shared Sub ToAxisAngle( _
    ByVal q As Quaternion, _
    ByRef axis As Vector3, _
    ByRef angle As Single _
)
C# public static void ToAxisAngle(
    Quaternion q,
    ref Vector3 axis,
    ref float angle
);
Managed C++ public: static void ToAxisAngle(
    Quaternion q,
    Vector3 *axis,
    float *angle
);
JScript .NET public static function ToAxisAngle(
    q : Quaternion,
    axis : Vector3,
    angle : float
);

Parameters

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

Remarks

This method requires unit quaternions.


© 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