XMPlaneIntersectPlane

Finds the intersection of two planes.

Syntax

void XMPlaneIntersectPlane(
         XMVECTOR *pLinePoint1,
         XMVECTOR *pLinePoint2,
         XMVECTOR P1,
         XMVECTOR P2
)  

Parameters

pLinePoint1
Type: XMVECTOR *

[out]

Address of a 3D vector describing one point on the line of intersection. See remarks.

pLinePoint2
Type: XMVECTOR *

[out]

Address of a 3D vector describing a second point on the line of intersection. See remarks.

P1
Type: XMVECTOR 

[in]

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

P2
Type: XMVECTOR 

[in]

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

Return value

None.

Remarks

If the planes are parallel to one another, all components of the returned point vectors are equal to QNaN.

Requirements

Header: Declared in directxmath.h.