XMPlaneEqual

Determines if two planes are equal.

Syntax

bool XMPlaneEqual(
         XMVECTOR P1,
         XMVECTOR P2
)  

Parameters

P1
Type: XMVECTOR 

XMVECTOR describing the plane coefficients (A, B, C, D) for the plane equation

return (P1.x == P2.x && P1.y == P2.y && P1.z == P2.z && P1.w == P2.w);  

.

P2
Type: XMVECTOR 

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

Return value

Type: bool 

Returns true if the two planes are equal and false otherwise.

Remarks

The following pseudocode demonstrates the operation of the function.
Ax+By+Cz+D=0

Requirements

Header: Declared in directxmath.h.