D3DXQuaternionToAxisAngle
Microsoft DirectX 9.0 SDK Update (October 2004)

D3DXQuaternionToAxisAngle Function


Computes a quaternion's axis and angle of rotation.

Syntax

void WINAPI D3DXQuaternionToAxisAngle(      

    CONST D3DXQUATERNION *pQ,     D3DXVECTOR3 *pAxis,     FLOAT *pAngle );

Parameters

pQ
[in] Pointer to the source D3DXQUATERNION structure.
pAxis
[in, out] When this function returns, pointer to a D3DXVECTOR3 structure that identifies the quaternion's axis of rotation.
pAngle
[in, out] This function returns a pointer to a FLOAT value that identifies the quaternion's angle of rotation in radians.

Return Value

No return value.



Remarks

This function expects unit quaternions.

Function Information

Headerd3dx9math.h
Import libraryd3dx9.lib
Minimum operating systems Windows 98


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.