public static double wrapAngleRad(double angle) {
        angle %= TrigMath.TWO_PI;
        if (angle <= -TrigMath.PI) {
            return angle + TrigMath.TWO_PI;
        }
        if (angle > TrigMath.PI) {
            return angle - TrigMath.TWO_PI;
        }
        return angle;
    }
public static double wrapAngleRad(double angle) {
        angle %= TrigMath.TWO_PI;
        if (angle <= -TrigMath.PI) {
            return angle + TrigMath.TWO_PI;
        }
        if (angle > TrigMath.PI) {
            return angle - TrigMath.TWO_PI;
        }
        return angle;
    }
public static double wrapAngleRad ( double angle ) { angle %= TrigMath . TWO_PI ; if ( angle <= - TrigMath . PI ) { return angle + TrigMath . TWO_PI ; } if ( angle > TrigMath . PI ) { return angle - TrigMath . TWO_PI ; } return angle ; }
Wraps the radian between -PI and PI

@param angle to wrap
@return -PI < radian <= PI
Wraps the radian between - PI and PI