MCPcopy Create free account
hub / github.com/breck7/scroll / project

Function project

external/.d3.js:12405–12408  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

12403 var c = 1 + sy0 * (2 * n - sy0), r0 = sqrt$2(c) / n;
12404
12405 function project(x, y) {
12406 var r = sqrt$2(c - 2 * n * sin$1(y)) / n;
12407 return [r * sin$1(x *= n), r0 - r * cos$1(x)];
12408 }
12409
12410 project.invert = function(x, y) {
12411 var r0y = r0 - y,

Callers 5

resampleNoneFunction · 0.85
resampleLineToFunction · 0.85
pointFunction · 0.85
linePointFunction · 0.85
recenterFunction · 0.85

Calls 1

tanyFunction · 0.85

Tested by

no test coverage detected