|
Last change
on this file since a762898 was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago |
|
Prototype 1.1
|
-
Property mode
set to
100644
|
|
File size:
396 bytes
|
| Line | |
|---|
| 1 | import {atan, cos, sin} from "../math.js";
|
|---|
| 2 | import {azimuthalInvert} from "./azimuthal.js";
|
|---|
| 3 | import projection from "./index.js";
|
|---|
| 4 |
|
|---|
| 5 | export function gnomonicRaw(x, y) {
|
|---|
| 6 | var cy = cos(y), k = cos(x) * cy;
|
|---|
| 7 | return [cy * sin(x) / k, sin(y) / k];
|
|---|
| 8 | }
|
|---|
| 9 |
|
|---|
| 10 | gnomonicRaw.invert = azimuthalInvert(atan);
|
|---|
| 11 |
|
|---|
| 12 | export default function() {
|
|---|
| 13 | return projection(gnomonicRaw)
|
|---|
| 14 | .scale(144.049)
|
|---|
| 15 | .clipAngle(60);
|
|---|
| 16 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.