|
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:
385 bytes
|
| Line | |
|---|
| 1 | import {asin, cos, epsilon, sin} from "../math.js";
|
|---|
| 2 | import {azimuthalInvert} from "./azimuthal.js";
|
|---|
| 3 | import projection from "./index.js";
|
|---|
| 4 |
|
|---|
| 5 | export function orthographicRaw(x, y) {
|
|---|
| 6 | return [cos(y) * sin(x), sin(y)];
|
|---|
| 7 | }
|
|---|
| 8 |
|
|---|
| 9 | orthographicRaw.invert = azimuthalInvert(asin);
|
|---|
| 10 |
|
|---|
| 11 | export default function() {
|
|---|
| 12 | return projection(orthographicRaw)
|
|---|
| 13 | .scale(249.5)
|
|---|
| 14 | .clipAngle(90 + epsilon);
|
|---|
| 15 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.