MCPcopy Create free account
hub / github.com/alignoth/alignoth / oE

Function oE

resources/vega.min.js:20268–20284  ·  view source on GitHub ↗
(t, e)

Source from the content-addressed store, hash-verified

20266 return 0;
20267 }
20268 function oE(t, e) {
20269 for (
20270 var n = e[0], r = e[1], i = -1, o = 0, a = t.length, s = a - 1;
20271 o < a;
20272 s = o++
20273 ) {
20274 var u = t[o],
20275 l = u[0],
20276 c = u[1],
20277 f = t[s],
20278 h = f[0],
20279 d = f[1];
20280 if (aE(u, f, e)) return 0;
20281 c > r != d > r && n < ((h - l) * (r - c)) / (d - c) + l && (i = -i);
20282 }
20283 return i;
20284 }
20285 function aE(t, e, n) {
20286 var r, i, o, a;
20287 return (

Callers 1

iEFunction · 0.85

Calls 1

aEFunction · 0.85

Tested by

no test coverage detected