Download node_modules/d3-geo/src/projection/gnomonic.js from NKessler/Horizon: direct link, hf CLI and curl.
- Browser
- Download file 396 Bytes
-
https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-geo/src/projection/gnomonic.js
- Command line
-
hf download hf://NKessler/Horizon/node_modules/d3-geo/src/projection/gnomonic.js
-
curl -L -o gnomonic.js https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-geo/src/projection/gnomonic.js
396 Bytes
| import {atan, cos, sin} from "../math.js"; | |
| import {azimuthalInvert} from "./azimuthal.js"; | |
| import projection from "./index.js"; | |
| export function gnomonicRaw(x, y) { | |
| var cy = cos(y), k = cos(x) * cy; | |
| return [cy * sin(x) / k, sin(y) / k]; | |
| } | |
| gnomonicRaw.invert = azimuthalInvert(atan); | |
| export default function() { | |
| return projection(gnomonicRaw) | |
| .scale(144.049) | |
| .clipAngle(60); | |
| } | |