almostEqualXYUncheckedIndexIndex Method

Test whether the xy-coordinates of the indexed points are equal within tolerance. The z-coordinates are ignored.

almostEqualXYUncheckedIndexIndex(index0: number, index1: number, tolerance: number = Geometry.smallMetricDistance): boolean

@returns whether the xy-coordinates of the points are equal within tolerance.

Parameter Type Description
index0 number index of first point.
index1 number index of second point.
tolerance number max coordinate difference to be considered equal. For exact test, pass 0. Defaults to Geometry.smallMetricDistance.

Returns - boolean

whether the xy-coordinates of the points are equal within tolerance.

Defined in

Last Updated: 13 December, 2025