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

Function compareIntersection

docs/app/js/sanddance-app.js:132741–132743  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

132739// Intersections are sorted along the clip edge. For both antimeridian cutting
132740// and circle clipping, the same comparison is used.
132741function compareIntersection(a, b) {
132742 return ((a = a.x)[0] < 0 ? a[1] - (0, _mathJs.halfPi) - (0, _mathJs.epsilon) : (0, _mathJs.halfPi) - a[1]) - ((b = b.x)[0] < 0 ? b[1] - (0, _mathJs.halfPi) - (0, _mathJs.epsilon) : (0, _mathJs.halfPi) - b[1]);
132743}
132744
132745},{"./buffer.js":"tWINt","./rejoin.js":"5wYCY","../math.js":"cDOGy","../polygonContains.js":"6aszZ","d3-array":"8JMcC","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"tWINt":[function(require,module,exports) {
132746var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers

nothing calls this directly

Calls 1

comparePointFunction · 0.70

Tested by

no test coverage detected