MCPcopy Create free account
hub / github.com/microsoft/SandDance / bitCode

Function bitCode

docs/tests/v3/es6/js/sanddance-test-es6.js:50149–50156  ·  view source on GitHub ↗
(p, bbox)

Source from the content-addressed store, hash-verified

50147 return out;
50148}
50149function bitCode(p, bbox) {
50150 let code = 0;
50151 if (p[0] < bbox[0]) code |= 1;
50152 else if (p[0] > bbox[2]) code |= 2;
50153 if (p[1] < bbox[1]) code |= 4;
50154 else if (p[1] > bbox[3]) code |= 8;
50155 return code;
50156}
50157
50158},{"./utils":"gSYB0","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"gSYB0":[function(require,module,exports) {
50159var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers 2

clipPolylineFunction · 0.70
clipPolygonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected