Function XMVector2IntersectLine

Source
pub fn XMVector2IntersectLine(
    Line1Point1: FXMVECTOR,
    Line1Point2: FXMVECTOR,
    Line2Point1: FXMVECTOR,
    Line2Point2: FXMVECTOR,
) -> XMVECTOR
Expand description

Finds the intersection of two lines.

§Parameters

Line1Point1 2D vector describing the first point on the first line.

Line1Point2 2D vector describing a second point on the first line.

Line2Point1 2D vector describing the first point on the second line.

Line2Point2 2D vector describing a second point on the second line.

§Return value

Returns the intersection point. If the lines are parallel, the returned vector will be a NaN. If the two lines are coincident, the returned vector will be positive infinity.

§Reference

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