Distance2d.SegmentSegment Method

Computes the distance between two line segments.
Public Shared Function SegmentSegment( _ 
ByVal seg1 As Line2d, _ 
ByVal seg2 As Line2d, _ 
Optional ByVal checkIntersection As Boolean = true _ 
) As Double
This language is not supported or no code example is available.
public static double SegmentSegment( 
Line2d seg1
Line2d seg2
bool checkIntersection = true 
)
This language is not supported or no code example is available.
public:  
static double SegmentSegment( 
Line2d^ seg1
Line2d^ seg2
bool checkIntersection 
)
This language is not supported or no code example is available.
public static function SegmentSegment( 
seg1 : Line2d
seg2 : Line2d
checkIntersection : boolean 
) : double;
This language is not supported or no code example is available.

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