Download node_modules/d3-geo/src/projection/cylindricalEqualArea.js from NKessler/Horizon: direct link, hf CLI and curl.
- Browser
- Download file 317 Bytes
-
https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-geo/src/projection/cylindricalEqualArea.js
- Command line
-
hf download hf://NKessler/Horizon/node_modules/d3-geo/src/projection/cylindricalEqualArea.js
-
curl -L -o cylindricalEqualArea.js https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-geo/src/projection/cylindricalEqualArea.js
317 Bytes
| import {asin, cos, sin} from "../math.js"; | |
| export function cylindricalEqualAreaRaw(phi0) { | |
| var cosPhi0 = cos(phi0); | |
| function forward(lambda, phi) { | |
| return [lambda * cosPhi0, sin(phi) / cosPhi0]; | |
| } | |
| forward.invert = function(x, y) { | |
| return [x / cosPhi0, asin(y * cosPhi0)]; | |
| }; | |
| return forward; | |
| } | |