tethys-feature-service/node_modules/proj4/lib/common/adjust_lat.js

7 lines
170 B
JavaScript
Raw Normal View History

2023-10-02 13:04:02 +00:00
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));
}