XYAndZ.almostEqual Function

Return true if two XYAndZs have equal x,y,z parts within a specified tolerance.

almostEqual(a: XYAndZ, b: XYAndZ, tol?: number): boolean

@returns true if the difference in each coordinate of a and b is smaller than tol.

Parameter Type Description
a XYAndZ The first XYAndZ to compare
b XYAndZ The second XYAndZ to compare
tol number tolerance for comparison. If undefined, smallMetricDistance is used.

Returns - boolean

true if the difference in each coordinate of a and b is smaller than tol.

Defined in

Last Updated: 07 May, 2026