MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / numberEqual

Method numberEqual

src/common/mapping/WebMapV2.js:840–842  ·  view source on GitHub ↗
(num1, num2, precision = 10E-6)

Source from the content-addressed store, hash-verified

838 return this._isSameOrigin(origin) && this._isSameResolutions(resolutions, tileSize);
839 }
840 numberEqual(num1, num2, precision = 10E-6) {
841 return Math.abs(+num1 - +num2) <= precision;
842 }
843 _isSameOrigin(origin) {
844 const extent = this.map.getCRS().getExtent();
845 return this.numberEqual(origin[0], extent[0]) && this.numberEqual(origin[1], extent[3]);

Callers 2

_isSameOriginMethod · 0.95
_isSameResolutionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected