adjust_lat.js 155 B

123456
  1. var HALF_PI = Math.PI/2;
  2. var sign = require('./sign');
  3. module.exports = function(x) {
  4. return (Math.abs(x) < HALF_PI) ? x : (x - (sign(x) * Math.PI));
  5. };