public static function wrap($n, $min, $max) {
        return ($n >= $min && $n < $max) ? $n : (self::mod($n - $min, $max - $min) + $min);
    }
public static function wrap($n, $min, $max) {
        return ($n >= $min && $n < $max) ? $n : (self::mod($n - $min, $max - $min) + $min);
    }
public static function wrap ( $ n , $ min , $ max ) { return ( $ n >= $ min && $ n < $ max ) ? $ n : ( self :: mod ( $ n - $ min , $ max - $ min ) + $ min ) ; }
Wraps the given value into the inclusive-exclusive interval between min and max.
@param n   The value to wrap.
@param min The minimum.
@param max The maximum.
Wraps the given value into the inclusive - exclusive interval between min and max .