Intersect2d.LineLine (Line2d, Line2d, out Point2d) Method

Computes the point of intersection between two infinite lines.
public static bool LineLine( 
   Line2d l1
   Line2d l2
   out Point2d res 
)

Parameters

l1
Line2d

First line to intersect.

l2
Line2d

Second line to intersect.

res
Point2d

Set to a new point at the intersection of lines or null if the lines do not intersect (which in this case means thay are parallel).

Return Value

bool

true if the lines intersect, otherwise false.

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition