|
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 | |
|---|
| 1 | import {acos, sin} from "../math.js";
|
|---|
| 2 | import {azimuthalRaw, azimuthalInvert} from "./azimuthal.js";
|
|---|
| 3 | import projection from "./index.js";
|
|---|
| 4 |
|
|---|
| 5 | export var azimuthalEquidistantRaw = azimuthalRaw(function(c) {
|
|---|
| 6 | return (c = acos(c)) && c / sin(c);
|
|---|
| 7 | });
|
|---|
| 8 |
|
|---|
| 9 | azimuthalEquidistantRaw.invert = azimuthalInvert(function(z) {
|
|---|
| 10 | return z;
|
|---|
| 11 | });
|
|---|
| 12 |
|
|---|
| 13 | export 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.