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

Function hM

resources/vega.min.js:19148–19178  ·  view source on GitHub ↗
(t, e, n, r, i, o)

Source from the content-addressed store, hash-verified

19146 },
19147 });
19148 function hM(t, e, n, r, i, o) {
19149 if (!o)
19150 return (function (t, e, n, r, i) {
19151 function o(o, a) {
19152 return [e + t * (o *= r), n - t * (a *= i)];
19153 }
19154 return (
19155 (o.invert = function (o, a) {
19156 return [((o - e) / t) * r, ((n - a) / t) * i];
19157 }),
19158 o
19159 );
19160 })(t, e, n, r, i);
19161 var a = Jb(o),
19162 s = nw(o),
19163 u = a * t,
19164 l = s * t,
19165 c = a / t,
19166 f = s / t,
19167 h = (s * n - a * e) / t,
19168 d = (s * e + a * n) / t;
19169 function p(t, o) {
19170 return [u * (t *= r) - l * (o *= i) + e, n - l * t - u * o];
19171 }
19172 return (
19173 (p.invert = function (t, e) {
19174 return [r * (c * t - f * e + h), i * (d - f * t - c * e)];
19175 }),
19176 p
19177 );
19178 }
19179 function dM(t) {
19180 return pM(function () {
19181 return t;

Callers 1

FFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected