closeApproachProjectedXYPairs MethodStatic

Return at least one XY close approach between 2 curves.

  • Close approach xy-distances are measured without regard to z. This is equivalent to their separation distance as seen in the top view, or as measured between their projections onto the xy-plane.
  • If more than one approach is returned, one of them is the closest approach.
  • If an input curve is a CurveCollection, then close approaches are computed to each CurvePrimitive child. This can lead to many returned pairs, especially when both inputs are CurveCollections. If an input curve is an AnyRegion, then close approaches are computed only to the defining curves, not to the area they enclose.

closeApproachProjectedXYPairs(curveA: AnyCurve, curveB: AnyCurve, maxDistanceOrOptions: number | CurveCurveOptions = Geometry.largeCoordinateResult): CurveLocationDetailPair[]

@returns array of detail pairs of close xy-approaches. 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
maxDistanceOrOptions number | CurveCurveOptions maximum xy-distance to consider between the curves, or a list of extended options.
Close approaches further than this xy-distance are not returned.

Returns - CurveLocationDetailPair[]

array of detail pairs of close xy-approaches. XY-length of the returned close approach is set in detailA.a and detailB.a.

Defined in

Last Updated: 04 June, 2026