D3DXQuaternionLengthSq

Returns the square of the length of a quaternion.

FLOAT D3DXQuaternionLengthSq(
  CONST D3DXQUATERNION * pQ
);

Parameters

pQ
[in] Pointer to the source D3DXQUATERNION structure.

Return Values

The quaternion's squared length.

Remarks

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

Requirements

Header: Declared in D3dx9math.h.

See Also

D3DXQuaternionLength