tethys-feature-service/node_modules/proj4/lib/common/adjust_lat.js
2023-10-02 15:04:02 +02:00

7 lines
170 B
JavaScript

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));
}