UNPKG

proj4

Version:

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

7 lines (5 loc) 173 B
import { HALF_PI } from '../constants/values'; import sign from './sign'; export default function (x) { return (Math.abs(x) < HALF_PI) ? x : (x - (sign(x) * Math.PI)); }