Finds the intersection between a plane and a line.
XMVECTOR XMPlaneIntersectLine( [in] XMVECTOR P, [in] XMVECTOR LinePoint1, [in] XMVECTOR LinePoint2 );
- P [in]
XMVECTOR describing the plane coefficients (A, B, C, D) for the plane equation
- LinePoint1 [in]
3D vector describing the first point on the line.
- LinePoint2 [in]
3D vector describing the second point on the line.
Returns the intersection of the plane P and the line defined by LinePoint1 and LinePoint2. If the line is parallel to the plane, all components of the returned vector are equal to QNaN.
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.