MCPcopy Index your code
hub / github.com/microsoft/SandDance / bitCode

Function bitCode

docs/app/js/sanddance-app.js:102218–102225  ·  view source on GitHub ↗
(p, bbox)

Source from the content-addressed store, hash-verified

102216 return out;
102217}
102218function bitCode(p, bbox) {
102219 let code = 0;
102220 if (p[0] < bbox[0]) code |= 1;
102221 else if (p[0] > bbox[2]) code |= 2;
102222 if (p[1] < bbox[1]) code |= 4;
102223 else if (p[1] > bbox[3]) code |= 8;
102224 return code;
102225}
102226
102227},{"./utils":"7b2Ry","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"7b2Ry":[function(require,module,exports) {
102228var 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