[][src]Function directx_math::XMPlaneNearEqual

pub fn XMPlaneNearEqual(
    P1: FXMVECTOR,
    P2: FXMVECTOR,
    Epsilon: FXMVECTOR
) -> bool

Determines whether two planes are nearly equal.

Parameters

P1 XMVECTOR describing the plane coefficients (A, B, C, D) for the plane equation Ax+By+Cz+D=0.

P2 XMVECTOR describing the plane coefficients (A, B, C, D) for the plane equation Ax+By+Cz+D=0.

Epsilon An XMVECTOR that gives the component-wise tolerance to use when comparing P1 and P2.

Return value

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.

Reference

https://docs.microsoft.com/en-us/windows/win32/api/directxmath/nf-directxmath-XMPlaneNearEqual