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 static Tuple<Point3d, Point3d> SegmentSegment( 
   Line3d seg1
   Line3d seg2 
)

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