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

8 lines
171 B
JavaScript

import {TWO_PI, SPI} from '../constants/values';
import sign from './sign';
export default function(x) {
return (Math.abs(x) <= SPI) ? x : (x - (sign(x) * TWO_PI));
}