source: node_modules/d3-geo/src/projection/cylindricalEqualArea.js@ e4c61dd

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: 317 bytes
RevLine 
[e4c61dd]1import {asin, cos, sin} from "../math.js";
2
3export function cylindricalEqualAreaRaw(phi0) {
4 var cosPhi0 = cos(phi0);
5
6 function forward(lambda, phi) {
7 return [lambda * cosPhi0, sin(phi) / cosPhi0];
8 }
9
10 forward.invert = function(x, y) {
11 return [x / cosPhi0, asin(y * cosPhi0)];
12 };
13
14 return forward;
15}
Note: See TracBrowser for help on using the repository browser.