public static boolean between(float value, float start, float end) {
        if (start > end) {
            float tmp = start;
            start = end;
            end = tmp;
        }
        return value >= start && value <= end;
    }
public static boolean between ( float value , float start , float end ) { if ( start > end ) { float tmp = start ; start = end ; end = tmp ; } return value >= start && value <= end ; }
Checks if value belongs to range <code>[start, end]</code>

@param value value
@param start start of range
@param end   end of range
@return true if value belogs to range, false otherwise