MCPcopy Create free account
hub / github.com/BloombergGraphics/whatiscode / rescale

Function rescale

scripts/libs/fisheye.js:22–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 }
21
22 function rescale() {
23 k0 = Math.exp(distortion);
24 k0 = k0 / (k0 - 1) * radius;
25 k1 = distortion / radius;
26 return fisheye;
27 }
28
29 fisheye.radius = function(_) {
30 if (!arguments.length) return radius;

Callers 1

fisheye.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected