D3DXQuaternionToAxisAngle

Computes a quaternion's axis and angle of rotation.

void D3DXQuaternionToAxisAngle(
  CONST D3DXQUATERNION * pQ,
  D3DXVECTOR3 * pAxis,
  FLOAT * pAngle
);

Parameters

pQ
[in] Pointer to the source D3DXQUATERNION structure.
pAxis
[in, out] This function returns a 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 Values

No return value.

Remarks

Use D3DXQuaternionNormalize for any quaternion input that is not already normalized.

Requirements

Header: Declared in D3dx9math.h.