XMVector2IntersectLine

Finds the intersection of two lines.

Syntax

XMVECTOR XMVector2IntersectLine(
         XMVECTOR Line1Point1,
         XMVECTOR Line1Point2,
         XMVECTOR Line2Point1,
         GXMVECTOR Line2Point2
)  

Parameters

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.

Return value

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.

Requirements

Header: Declared in directxmath.h.