Tests whether two quaternions are equal.
bool XMQuaternionEqual(
XMVECTOR Q1,
XMVECTOR Q2
)
Q1
Type: XMVECTOR
First quaternion to test.
Q2
Type: XMVECTOR
Second quaternion to test.
Type: bool
Returns true if the quaternions are equal and 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.