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

Method _contain

src/mapboxgl/overlay/VideoLayer.js:382–384  ·  view source on GitHub ↗
(coord, bounds)

Source from the content-addressed store, hash-verified

380 }
381
382 _contain(coord, bounds) {
383 return (coord[0] > bounds[0] || Math.abs(coord[0] - bounds[0]) < 0.000001 ) && (coord[0] < bounds[2] || Math.abs(coord[0] - bounds[2]) < 0.000001 ) && (coord[1] > bounds[1] || Math.abs(coord[1] - bounds[1]) < 0.000001) && (coord[1] < bounds[3] || Math.abs(coord[1] - bounds[3]) < 0.000001);
384 }
385
386 /**
387 * @function VideoLayer.prototype.moveLayer

Callers 1

onAddMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected