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

Function azimuthalInvert

external/.d3.js:12556–12567  ·  view source on GitHub ↗
(angle)

Source from the content-addressed store, hash-verified

12554}
12555
12556function azimuthalInvert(angle) {
12557 return function(x, y) {
12558 var z = sqrt$2(x * x + y * y),
12559 c = angle(z),
12560 sc = sin$1(c),
12561 cc = cos$1(c);
12562 return [
12563 atan2$1(x * sc, z * cc),
12564 asin$1(z && y * sc / z)
12565 ];
12566 }
12567}
12568
12569var azimuthalEqualAreaRaw = azimuthalRaw(function(cxcy) {
12570 return sqrt$2(2 / (1 + cxcy));

Callers 1

.d3.jsFile · 0.85

Calls 2

angleFunction · 0.85
asin$1Function · 0.85

Tested by

no test coverage detected