D3DXQuaternionLength

Returns the length of a quaternion.

FLOAT D3DXQuaternionLength(
  CONST D3DXQUATERNION * pQ
);

Parameters

pQ
[in] Pointer to the source D3DXQUATERNION structure.

Return Values

The quaternion's length.

Remarks

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

Requirements

Header: Declared in D3dx9math.h.

See Also

D3DXQuaternionLengthSq