Tests whether one 4D vector is near another 4D vector.
bool XMVector4NearEqual(
XMVECTOR V1,
XMVECTOR V2,
XMVECTOR Epsilon
)
V1
Type: XMVECTOR
4D vector.
V2
Type: XMVECTOR
4D vector.
Epsilon
Type: XMVECTOR
Tolerance value used for judging equality.
Type: bool
Returns true if V1 is near V2 and false otherwise.
The following pseudocode demonstrates the operation of the function:
return ( ( abs( V1.x - V2.x ) <= Epsilon ) &&
( abs( V1.y - V2.y ) <= Epsilon ) &&
( abs( V1.z - V2.z ) <= Epsilon ) &&
( abs( V1.w - V2.w ) <= Epsilon ));
Header: Declared in directxmath.h.