public Vector2f normalize() {
        float length = length();
        if (length != 0) {
            return divide(length);
        }

        return divide(1);
    }
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 Vector2f
jme3-core/src/main/java/com/jme3/math/Vector2f.java