Determines whether two planes are nearly equal.
bool XMPlaneNearEqual(
XMVECTOR P1,
XMVECTOR P2,
XMVECTOR Epsilon
)
P1
Type: XMVECTOR
XMVECTOR describing the plane coefficients (A, B, C, D) for the plane equation Ax+By+Cz+D=0.
P2
Type: XMVECTOR
XMVECTOR describing the plane coefficients (A, B, C, D) for the plane equation Ax+By+Cz+D=0.
Epsilon
Type: XMVECTOR
An XMVECTOR that gives the component-wise tolerance to use when comparing P1 and P2.
Type: bool
Returns true if P1 is nearly equal to P2 and false otherwise.
The XMPlaneNearEqual function normalizes the P1 and P2 parameters before passing them, and the Epsilon parameter, to the XMVector4NearEqual function. For more information about how the calculation is performed, see the XMVector4NearEqual function.
Header: Declared in directxmath.h.