Tests whether one 3D vector is near another 3D vector.
bool XMVector3NearEqual(
XMVECTOR V1,
XMVECTOR V2,
XMVECTOR Epsilon
)
V1
Type: XMVECTOR
3D vector.
V2
Type: XMVECTOR
3D 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 ));
Header: Declared in directxmath.h.