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

Function rotation

external/.d3.js:10387–10397  ·  view source on GitHub ↗
(lambda, phi)

Source from the content-addressed store, hash-verified

10385 sinDeltaGamma = sin$1(deltaGamma);
10386
10387 function rotation(lambda, phi) {
10388 var cosPhi = cos$1(phi),
10389 x = cos$1(lambda) * cosPhi,
10390 y = sin$1(lambda) * cosPhi,
10391 z = sin$1(phi),
10392 k = z * cosDeltaPhi + x * sinDeltaPhi;
10393 return [
10394 atan2$1(y * cosDeltaGamma - k * sinDeltaGamma, x * cosDeltaPhi - z * sinDeltaPhi),
10395 asin$1(k * cosDeltaGamma + y * sinDeltaGamma)
10396 ];
10397 }
10398
10399 rotation.invert = function(lambda, phi) {
10400 var cosPhi = cos$1(phi),

Callers 1

reclipFunction · 0.85

Calls 3

asin$1Function · 0.85
rotateRadiansFunction · 0.85
invertMethod · 0.80

Tested by

no test coverage detected