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

Function corner

external/.d3.js:11168–11173  ·  view source on GitHub ↗
(p, direction)

Source from the content-addressed store, hash-verified

11166 }
11167
11168 function corner(p, direction) {
11169 return abs$1(p[0] - x0) < epsilon$1 ? direction > 0 ? 0 : 3
11170 : abs$1(p[0] - x1) < epsilon$1 ? direction > 0 ? 2 : 1
11171 : abs$1(p[1] - y0) < epsilon$1 ? direction > 0 ? 1 : 0
11172 : direction > 0 ? 3 : 2; // abs(p[1] - y1) < epsilon
11173 }
11174
11175 function compareIntersection(a, b) {
11176 return comparePoint(a.x, b.x);

Callers 2

interpolateFunction · 0.85
comparePointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected