XMVector4Equal

Tests whether two 4D vectors are equal.

Syntax

bool XMVector4Equal(
         XMVECTOR V1,
         XMVECTOR V2
)  

Parameters

V1
Type: XMVECTOR 

4D vector.

V2
Type: XMVECTOR 

4D vector.

Return value

Type: bool 

Returns true if the 4D vectors are equal and false otherwise.

Remarks

The following pseudocode demonstrates the operation of the function:

return ( V1.x == V2.x && 
         V2.y == V2.y &&
         V2.z == V2.z &&
         V2.w == V2.w );  

Requirements

Header: Declared in directxmath.h.