D3DXQuaternionIsIdentity function

Determines if a quaternion is an identity quaternion.

Syntax


BOOL D3DXQuaternionIsIdentity(
  _In_ const D3DXQUATERNION *pQ
);

Parameters

pQ [in]

Type: const D3DXQUATERNION*

Pointer to the D3DXQUATERNION structure that will be tested for identity.

Return value

Type: BOOL

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

D3dx9math.h

Library

D3dx9.lib

See also

Math Functions
D3DXQuaternionIdentity

 

 

Show: