class MathUtil {

    public static double map(int value, double min, double max)
    {
        return (max - min) * .5 * (1 + value / (double)Integer.MAX_VALUE) + min;
    }

    private  MathUtil();

}