public static final float clamp(final float x, final float a, final float b) {
        return x < a ? a : x > b ? b : x;
    }
A private constructor to inhibit instantiation of this class.
jme3-terrain/src/main/java/com/jme3/terrain/noise/ShaderUtils.java