Distance2d.SegmentSegment Method

Computes the distance between two line segments.
public static double SegmentSegment( 
   Line2d seg1
   Line2d seg2
   bool checkIntersection = true 
)

Parameters

seg1
Line2d

The first line segment.

seg2
Line2d

The second line segment.

checkIntersection
bool

Return Value

double

The smallest distance between segments.

.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