MCPcopy
hub / github.com/microsoft/SandDance / code

Function code

docs/tests/v2/es6/js/sanddance.js:115051–115061  ·  view source on GitHub ↗
(lambda, phi)

Source from the content-addressed store, hash-verified

115049
115050
115051 function code(lambda, phi) {
115052 var r = smallRadius ? radius : _math.pi - radius,
115053 code = 0;
115054 if (lambda < -r) code |= 1; // left
115055 else if (lambda > r) code |= 2; // right
115056
115057 if (phi < -r) code |= 4; // below
115058 else if (phi > r) code |= 8; // above
115059
115060 return code;
115061 }
115062
115063 return (0, _index.default)(visible, clipLine, interpolate, smallRadius ? [0, -radius] : [-_math.pi, radius - _math.pi]);
115064}

Callers 2

sanddance-app.jsFile · 0.85
clipLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected