public static final float[] normalize(final float[] v) {
        float l = ShaderUtils.length(v);
        float[] r = new float[v.length];
        int i = 0;
        for (float vv : v) {
            r[i++] = vv / l;
        }
        return r;
    }
A private constructor to inhibit instantiation of this class.
jme3-terrain/src/main/java/com/jme3/terrain/noise/ShaderUtils.java