private static float mapValue(float x, float min, float max) {
        return mapValue(x, 0, 1, min, max);
    }
Maps a value from 0-1 to a range from min to max.

@param x
@param min
@param max
@return the mapped value
jme3-examples/src/main/java/jme3test/games/WorldOfInception.java