source: node_modules/d3-geo/src/projection/gnomonic.js

Last change on this file was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago

Prototype 1.1

  • Property mode set to 100644
File size: 396 bytes
Line 
1import {atan, cos, sin} from "../math.js";
2import {azimuthalInvert} from "./azimuthal.js";
3import projection from "./index.js";
4
5export function gnomonicRaw(x, y) {
6 var cy = cos(y), k = cos(x) * cy;
7 return [cy * sin(x) / k, sin(y) / k];
8}
9
10gnomonicRaw.invert = azimuthalInvert(atan);
11
12export default function() {
13 return projection(gnomonicRaw)
14 .scale(144.049)
15 .clipAngle(60);
16}
Note: See TracBrowser for help on using the repository browser.