MCPcopy Create free account
hub / github.com/breck7/scroll / compareIntersection

Function compareIntersection

external/.d3.js:10818–10821  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

10816// Intersections are sorted along the clip edge. For both antimeridian cutting
10817// and circle clipping, the same comparison is used.
10818function compareIntersection(a, b) {
10819 return ((a = a.x)[0] < 0 ? a[1] - halfPi$1 - epsilon$1 : halfPi$1 - a[1])
10820 - ((b = b.x)[0] < 0 ? b[1] - halfPi$1 - epsilon$1 : halfPi$1 - b[1]);
10821}
10822
10823var clipAntimeridian = clip(
10824 function() { return true; },

Callers

nothing calls this directly

Calls 1

comparePointFunction · 0.85

Tested by

no test coverage detected