source: node_modules/d3-geo/src/projection/orthographic.js

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
RevLine 
[e4c61dd]1import {asin, cos, epsilon, sin} from "../math.js";
2import {azimuthalInvert} from "./azimuthal.js";
3import projection from "./index.js";
4
5export function orthographicRaw(x, y) {
6 return [cos(y) * sin(x), sin(y)];
7}
8
9orthographicRaw.invert = azimuthalInvert(asin);
10
11export 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.