D3DXQuaternionToAxisAngle
Computes a quaternion's axis and angle of rotation.
void D3DXQuaternionToAxisAngle(
CONST D3DXQUATERNION* pQ,
D3DXVECTOR3* pAxis,
FLOAT* pAngle
);
Parameters
- pQ
- [in, out] 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] When this function returns, pointer to a FLOAT value that identifies the quaternion's angle of rotation in radians.
Return Values
None.
Remarks
This function expects unit quaternions.
Requirements
Header: Declared in D3dx8math.h.
Import Library: Use D3dx8.lib.