|
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:
456 bytes
|
| Line | |
|---|
| 1 | import {asin, sqrt} from "../math.js";
|
|---|
| 2 | import {azimuthalRaw, azimuthalInvert} from "./azimuthal.js";
|
|---|
| 3 | import projection from "./index.js";
|
|---|
| 4 |
|
|---|
| 5 | export var azimuthalEqualAreaRaw = azimuthalRaw(function(cxcy) {
|
|---|
| 6 | return sqrt(2 / (1 + cxcy));
|
|---|
| 7 | });
|
|---|
| 8 |
|
|---|
| 9 | azimuthalEqualAreaRaw.invert = azimuthalInvert(function(z) {
|
|---|
| 10 | return 2 * asin(z / 2);
|
|---|
| 11 | });
|
|---|
| 12 |
|
|---|
| 13 | export default function() {
|
|---|
| 14 | return projection(azimuthalEqualAreaRaw)
|
|---|
| 15 | .scale(124.75)
|
|---|
| 16 | .clipAngle(180 - 1e-3);
|
|---|
| 17 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.