public boolean equals(Object other) {
        if (this == other)
            return true;

        if (other instanceof Vector) {
            Vector vec = (Vector) other;
            return this.x == vec.x && this.y == vec.y && this.z == vec.z;
        }

        return false;
    }