@Override
    public boolean equals(Object o) {
        if (!(o instanceof Vector4f)) {
            return false;
        }

        if (this == o) {
            return true;
        }

        Vector4f comp = (Vector4f) o;
        if (Float.compare(x, comp.x) != 0) {
            return false;
        }
        if (Float.compare(y, comp.y) != 0) {
            return false;
        }
        if (Float.compare(z, comp.z) != 0) {
            return false;
        }
        if (Float.compare(w, comp.w) != 0) {
            return false;
        }
        return true;
    }
Are these two vectors the same? They are if they have the same x, y,
z, and w values.

@param o   the object to compare for equality
@return true if they are equal
jme3-core/src/main/java/com/jme3/math/Vector4f.java