Tests whether a specific quaternion is the identity quaternion.
bool XMQuaternionIsIdentity(
XMVECTOR Q
)
Q
Type: XMVECTOR
Quaternion to test.
Type: bool
Returns true if Q is the identity quaternion, or false otherwise.
The DirectXMath quaternion functions use an XMVECTOR 4-vector to represent quaternions, where the X, Y, and Z components are the vector part and the W component is the scalar part.
Header: Declared in directxmath.h.