XMQuaternionEqual

Tests whether two quaternions are equal.

Syntax

bool XMQuaternionEqual(
         XMVECTOR Q1,
         XMVECTOR Q2
)  

Parameters

Q1
Type: XMVECTOR 

First quaternion to test.

Q2
Type: XMVECTOR 

Second quaternion to test.

Return value

Type: bool 

Returns true if the quaternions are equal and false otherwise.

Remarks

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.

Requirements

Header: Declared in directxmath.h.