source: node_modules/d3-geo/src/projection/azimuthalEquidistant.js@ e4c61dd

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

Prototype 1.1

  • Property mode set to 100644
File size: 452 bytes
Line 
1import {acos, sin} from "../math.js";
2import {azimuthalRaw, azimuthalInvert} from "./azimuthal.js";
3import projection from "./index.js";
4
5export var azimuthalEquidistantRaw = azimuthalRaw(function(c) {
6 return (c = acos(c)) && c / sin(c);
7});
8
9azimuthalEquidistantRaw.invert = azimuthalInvert(function(z) {
10 return z;
11});
12
13export default function() {
14 return projection(azimuthalEquidistantRaw)
15 .scale(79.4188)
16 .clipAngle(180 - 1e-3);
17}
Note: See TracBrowser for help on using the repository browser.