Function directx_math::XMPlaneIntersectLine[][src]

pub fn XMPlaneIntersectLine(
    P: FXMVECTOR,
    LinePoint1: FXMVECTOR,
    LinePoint2: FXMVECTOR
) -> XMVECTOR

Finds the intersection between a plane and a line.

Parameters

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

LinePoint1 3D vector describing the first point on the line.

LinePoint2 3D vector describing the second point on the line.

Return value

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.

Reference

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