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

Function code1

docs/app/js/sanddance-app.js:133040–133047  ·  view source on GitHub ↗
(lambda, phi)

Source from the content-addressed store, hash-verified

133038 // Generates a 4-bit vector representing the location of a point relative to
133039 // the small circle's bounding box.
133040 function code1(lambda, phi) {
133041 var r = smallRadius ? radius : (0, _mathJs.pi) - radius, code = 0;
133042 if (lambda < -r) code |= 1; // left
133043 else if (lambda > r) code |= 2; // right
133044 if (phi < -r) code |= 4; // below
133045 else if (phi > r) code |= 8; // above
133046 return code;
133047 }
133048 return (0, _indexJsDefault.default)(visible, clipLine, interpolate, smallRadius ? [
133049 0,
133050 -radius

Callers 1

clipLineFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected