XMPlaneNearEqual

Determines whether two planes are nearly equal.

Syntax

bool XMPlaneNearEqual(
         XMVECTOR P1,
         XMVECTOR P2,
         XMVECTOR Epsilon
)  

Parameters

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.

Return value

Type: bool 

Returns true if P1 is nearly equal to P2 and false otherwise.

Remarks

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.

Requirements

Header: Declared in directxmath.h.