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

Function mM

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

Source from the content-addressed store, hash-verified

19340 );
19341 }
19342 function mM(t, e) {
19343 var n = nw(t),
19344 r = (n + nw(e)) / 2;
19345 if (Gb(r) < Ub)
19346 return (function (t) {
19347 var e = Jb(t);
19348 function n(t, n) {
19349 return [t * e, nw(n) / e];
19350 }
19351 return (
19352 (n.invert = function (t, n) {
19353 return [t / e, sw(n * e)];
19354 }),
19355 n
19356 );
19357 })(t);
19358 var i = 1 + n * (2 * r - n),
19359 o = iw(i) / r;
19360 function a(t, e) {
19361 var n = iw(i - 2 * r * nw(e)) / r;
19362 return [n * nw((t *= r)), o - n * Jb(t)];
19363 }
19364 return (
19365 (a.invert = function (t, e) {
19366 var n = o - e,
19367 a = Xb(t, Gb(n)) * rw(n);
19368 return (
19369 n * r < 0 && (a -= Pb * rw(t) * rw(n)),
19370 [a / r, sw((i - (t * t + n * n) * r * r) / (2 * r))]
19371 );
19372 }),
19373 a
19374 );
19375 }
19376 function yM() {
19377 return gM(mM).scale(155.424).center([0, 33.6442]);
19378 }

Callers

nothing calls this directly

Calls 1

swFunction · 0.85

Tested by

no test coverage detected