?/TD>
Microsoft DirectX 9.0

D3DXQuaternionToAxisAngle Function


Computes a quaternion's axis and angle of rotation.

Syntax

void 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.
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


© 2002 Microsoft Corporation. All rights reserved.