XMPlaneIntersectPlane function (directxmath.h)

Finds the intersection of two planes.

Syntax

void XM_CALLCONV XMPlaneIntersectPlane(
  [out] XMVECTOR  *pLinePoint1,
  [out] XMVECTOR  *pLinePoint2,
  [in]  FXMVECTOR P1,
  [in]  FXMVECTOR P2
) noexcept;

Parameters

[out] pLinePoint1

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

[out] pLinePoint2

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

[in] P1

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

[in] P2

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.

Platform Requirements

Microsoft Visual Studio 2010 or Microsoft Visual Studio 2012 with the Windows SDK for Windows 8. Supported for Win32 desktop apps, Windows Store apps, and Windows Phone 8 apps.

Requirements

Requirement Value
Target Platform Windows
Header directxmath.h

See also

DirectXMath Library Plane Functions