adjust_lat.js 170 B

123456
  1. import {HALF_PI} from '../constants/values';
  2. import sign from './sign';
  3. export default function(x) {
  4. return (Math.abs(x) < HALF_PI) ? x : (x - (sign(x) * Math.PI));
  5. }