public static float unInterpolateLinear(float value, float min, float max) {
        return (value - min) / (max - min);
    }
Converts a range of min/max to a 0-1 range.

@param value the value between min-max (inclusive).
@param min   the minimum of the range.
@param max   the maximum of the range.
@return A value between 0-1 if the given value is between min/max.
jme3-core/src/main/java/com/jme3/math/FastMath.java