MCPcopy Create free account
hub / github.com/facebook/Rapid / _pointsClose

Method _pointsClose

modules/services/VectorTileService.js:805–807  ·  view source on GitHub ↗

* _pointsClose * @param {Array} a - [lon, lat] * @param {Array} b - [lon, lat] * @param {number} tolerance * @return {boolean}

(a, b, tolerance)

Source from the content-addressed store, hash-verified

803 * @return {boolean}
804 */
805 _pointsClose(a, b, tolerance) {
806 return Math.abs(a[0] - b[0]) < tolerance && Math.abs(a[1] - b[1]) < tolerance;
807 }
808
809
810 /**

Callers 2

_mergeLineStringsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected