MCPcopy Create free account
hub / github.com/idank/explainshell / d3_geo_rotation

Function d3_geo_rotation

explainshell/web/static/js/d3.v3.js:2988–2990  ·  view source on GitHub ↗
(δλ, δφ, δγ)

Source from the content-addressed store, hash-verified

2986 return forward;
2987 };
2988 function d3_geo_rotation(δλ, δφ, δγ) {
2989 return δλ ? δφ || δγ ? d3_geo_compose(d3_geo_rotationλ(δλ), d3_geo_rotationφγ(δφ, δγ)) : d3_geo_rotationλ(δλ) : δφ || δγ ? d3_geo_rotationφγ(δφ, δγ) : d3_geo_equirectangular;
2990 }
2991 function d3_geo_forwardRotationλ(δλ) {
2992 return function(λ, φ) {
2993 return λ += δλ, [ λ > π ? λ - 2 * π : λ < -π ? λ + 2 * π : λ, φ ];

Callers 3

resetFunction · 0.85
d3.v3.jsFile · 0.85
circleFunction · 0.85

Calls 3

d3_geo_composeFunction · 0.85
d3_geo_rotationλFunction · 0.85
d3_geo_rotationφγFunction · 0.85

Tested by

no test coverage detected