Finds the intersection of two lines.
XMVECTOR XMVector2IntersectLine(
XMVECTOR Line1Point1,
XMVECTOR Line1Point2,
XMVECTOR Line2Point1,
GXMVECTOR Line2Point2
)
Line1Point1
Type: XMVECTOR
2D vector describing the first point on the first line.
Line1Point2
Type: XMVECTOR
2D vector describing a second point on the first line.
Line2Point1
Type: XMVECTOR
2D vector describing the first point on the second line.
Line2Point2
Type: GXMVECTOR
2D vector describing a second point on the second line.
Type: XMVECTOR
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.
Header: Declared in directxmath.h.