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