Intersect2d.LineLineParametric Method

Computes the parameters of intersection between two infinite lines. Parameters are in range 0-1 if the intersection is in the segment span.
public static bool LineLineParametric( 
   Line2d l1
   Line2d l2
   out double param1
   out double param2
   double parallelTolerance = LinearParalellDenom 
)

Parameters

l1
Line2d

The first line to intersect.

l2
Line2d

The second line to intersect.

param1
double

Parameter on first line where it intersects the second.

param2
double

Parameter on second line where it intersects the first.

parallelTolerance
double

Return Value

bool

true if the lines intersect, otherwise false (which means thay are parallel in this case)

.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