UNPKG

proj4

Version:

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

6 lines (4 loc) 134 B
import { HALF_PI } from '../constants/values'; export default function (x, L) { return 2 * Math.atan(x * Math.exp(L)) - HALF_PI; }