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

Function Xk

resources/vega.min.js:18403–18597  ·  view source on GitHub ↗
(t, e, n, r)

Source from the content-addressed store, hash-verified

18401 var Gk = 1e9,
18402 Vk = -1e9;
18403 function Xk(t, e, n, r) {
18404 function i(i, o) {
18405 return t <= i && i <= n && e <= o && o <= r;
18406 }
18407 function o(i, o, s, l) {
18408 var c = 0,
18409 f = 0;
18410 if (
18411 null == i ||
18412 (c = a(i, s)) !== (f = a(o, s)) ||
18413 (u(i, o) < 0) ^ (s > 0)
18414 )
18415 do {
18416 l.point(0 === c || 3 === c ? t : n, c > 1 ? r : e);
18417 } while ((c = (c + s + 4) % 4) !== f);
18418 else l.point(o[0], o[1]);
18419 }
18420 function a(r, i) {
18421 return Gb(r[0] - t) < Ub
18422 ? i > 0
18423 ? 0
18424 : 3
18425 : Gb(r[0] - n) < Ub
18426 ? i > 0
18427 ? 2
18428 : 1
18429 : Gb(r[1] - e) < Ub
18430 ? i > 0
18431 ? 1
18432 : 0
18433 : i > 0
18434 ? 3
18435 : 2;
18436 }
18437 function s(t, e) {
18438 return u(t.x, e.x);
18439 }
18440 function u(t, e) {
18441 var n = a(t, 1),
18442 r = a(e, 1);
18443 return n !== r
18444 ? n - r
18445 : 0 === n
18446 ? e[1] - t[1]
18447 : 1 === n
18448 ? t[0] - e[0]
18449 : 2 === n
18450 ? t[1] - e[1]
18451 : e[0] - t[0];
18452 }
18453 return function (a) {
18454 var u,
18455 l,
18456 c,
18457 f,
18458 h,
18459 d,
18460 p,

Callers 2

pMFunction · 0.85
vega.min.jsFile · 0.85

Calls 10

OkFunction · 0.85
CeFunction · 0.85
UkFunction · 0.85
resultMethod · 0.80
lineEndMethod · 0.80
polygonStartMethod · 0.80
lineStartMethod · 0.80
polygonEndMethod · 0.80
kFunction · 0.70
oFunction · 0.70

Tested by

no test coverage detected