almostEqualXYIndexIndex Method

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

almostEqualXYIndexIndex(index0: number, index1: number, tolerance: numberGeometry.smallMetricDistance): undefined | boolean

@returns whether the xy-coordinates of the points are equal within tolerance, or undefined if either index is invalid.

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 - undefined | boolean

whether the xy-coordinates of the points are equal within tolerance, or undefined if either index is invalid.

Defined in

Last Updated: 30 July, 2025