D3DXQuaternionIsIdentity

Determines if a quaternion is an identity quaternion.

BOOL D3DXQuaternionIsIdentity(
  CONST D3DXQUATERNION * pQ
);

Parameters

pQ
[in] Pointer to the D3DXQUATERNION structure that will be tested for identity.

Return Values

If the quaternion is an identity quaternion, this function returns TRUE. Otherwise, this function returns FALSE.

Remarks

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

Requirements

Header: Declared in D3dx9math.h.

See Also

D3DXQuaternionIdentity