closestApproachProjectedXYPair MethodStatic

Convenience method that calls closeApproachProjectedXYPairs with a large maxDistance and returns a detail pair representing the closest xy-approach between the curves.

  • There may be many detail pairs that represent "closest" xy-approach, including coincident interval pairs, isolated intersections, or close approaches within tolerance of each other. This method makes no attempt to distinguish among them, and returns a pair whose detail.point values are separated by the smallest xy distance found among the pairs.

closestApproachProjectedXYPair(curveA: AnyCurve, curveB: AnyCurve, options?: CurveCurveOptions): CurveLocationDetailPair | undefined

@returns detail pair of closest xy-approach, undefined if not found. XY-length of the returned close approach is set in detailA.a and detailB.a.

Parameter Type Description
curveA AnyCurve first curve
curveB AnyCurve second curve
options CurveCurveOptions optional parameters for close approach calculation

Returns - CurveLocationDetailPair | undefined

detail pair of closest xy-approach, undefined if not found. XY-length of the returned close approach is set in detailA.a and detailB.a.

Defined in

Last Updated: 04 June, 2026