closestApproach MethodStatic
Compute the closest approach between a pair of line segments.
- The approach distance is returned in the afields of the details.
closestApproach(segmentA: LineSegment3d, extendA: VariantCurveExtendParameter, segmentB: LineSegment3d, extendB: VariantCurveExtendParameter, result?: CurveLocationDetailPair): undefined | CurveLocationDetailPair
@returns  pair of details, one per segment, each with a field set to the closest approach distance
| Parameter | Type | Description | 
|---|---|---|
| segmentA | LineSegment3d | first line segment | 
| extendA | VariantCurveExtendParameter | how to extend segmentA forward/backward | 
| segmentB | LineSegment3d | second line segment | 
| extendB | VariantCurveExtendParameter | how to extend segmentB forward/backward | 
| result | CurveLocationDetailPair | optional pre-allocated object to populate and return | 
Returns - undefined | CurveLocationDetailPair
pair of details, one per segment, each with a field set to the closest approach distance
Defined in
- curve/LineSegment3d.ts Line 233
Last Updated: 24 June, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.