comparePairsByPoints MethodStatic

Return a pair comparator useful for sorting an array of detail pairs by their points.

  • Comparison sorts the points lexicographically, detailA.point first, then detailB.point.

comparePairsByPoints(pointTol: number = Geometry.smallMetricDistance, xyOnly: boolean = false): OrderedComparator<CurveLocationDetailPair>

Parameter Type Description
pointTol number tolerance for comparing points. Default value smallMetricDistance.
xyOnly boolean whether to perform point comparisons in xy only. Default is false (compare 3D points).

Returns - OrderedComparator<CurveLocationDetailPair>

Defined in

Last Updated: 28 April, 2026