public static final float mod(final float a, final float b) {
        int n = (int) (a / b);
        float aa = a - n * b;
        if (aa < 0) {
            aa += b;
        }
        return aa;
    }
A private constructor to inhibit instantiation of this class.
jme3-terrain/src/main/java/com/jme3/terrain/noise/ShaderUtils.java