UNPKG

@mkerkstra/jsts-cjs

Version:

A CommonJS fork of JSTS: A JavaScript library of spatial predicates and functions for processing geometry

6 lines (5 loc) 132 B
export default class NumberUtil { static equalsWithTolerance(x1, x2, tolerance) { return Math.abs(x1 - x2) <= tolerance } }