BaoXs
2022-05-14 cb37a378c91135c8c442060601f308a698db4644
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));
};