ClosestPair3d.SegmentSegment Method

Computes the two points closest to each other on two line segments. Always returns a result, even if the segments are parallel and parametrically overlapping. In that case, a segments endpoint and a point on the other segment is returned as result. In the result, Item1 is on segment 1, and Item2 is on segment2.
Public Shared Function SegmentSegment( _ 
ByVal seg1 As Line3d, _ 
ByVal seg2 As Line3d
) As Tuple(Of Point3d, Point3d)
This language is not supported or no code example is available.
public static Tuple<Point3d, Point3d> SegmentSegment( 
Line3d seg1
Line3d seg2 
)
This language is not supported or no code example is available.
public:  
static Tuple<Point3d^, Point3d^>^ SegmentSegment( 
Line3d^ seg1
Line3d^ seg2 
)
This language is not supported or no code example is available.
JScript does not support generic types and methods.
This language is not supported or no code example is available.

Parameters

seg1
Line3d

seg2
Line3d

Return Value

Tuple<Point3d, Point3d>

.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