You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 lines
372 B

import {geoProjection as projection} from "d3-geo";
import {pi, sqrt} from "./math.js";
export function wagner6Raw(lambda, phi) {
return [lambda * sqrt(1 - 3 * phi * phi / (pi * pi)), phi];
}
wagner6Raw.invert = function(x, y) {
return [x / sqrt(1 - 3 * y * y / (pi * pi)), y];
};
export default function() {
return projection(wagner6Raw)
.scale(152.63);
}