public override int GetHashCode() { return this.X.GetHashCode() ^ this.Y.GetHashCode(); }
public override bool Equals(object obj) { Vector2 vec = (Vector2)obj; return(this.GetHashCode() == vec.GetHashCode()); }