almostEqualIndexIndex Method

Test whether the indexed points are equal within tolerance.

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

@returns whether 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 points are equal within tolerance, or undefined if either index is invalid.

Defined in

Last Updated: 30 July, 2025