public Vector3f normalize() {
//        float length = length();
//        if (length != 0) {
//            return divide(length);
//        }
//
//        return divide(1);
        float length = x * x + y * y + z * z;
        if (length != 1f && length != 0f) {
            length = 1.0f / FastMath.sqrt(length);
            return new Vector3f(x * length, y * length, z * length);
        }
        return clone();
    }
Normalizes the vector to length=1 and returns the result as a new
instance. If the vector has length=0, a clone is returned. Either way,
the current instance is unaffected.

@return a new Vector3f
jme3-core/src/main/java/com/jme3/math/Vector3f.java