UNPKG

proj4

Version:

Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.

5 lines (4 loc) 113 B
var HALF_PI = Math.PI/2; module.exports = function(x, L) { return 2 * Math.atan(x * Math.exp(L)) - HALF_PI; };