public static VectorInt2 operator +(VectorInt2 lhs, VectorInt2 rhs) { VectorInt2 result = new VectorInt2(lhs); result.x += rhs.x; result.y += rhs.y; return(result); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj.GetType() != this.GetType()) { return(false); } VectorInt2 v = (VectorInt2)(obj);// as VectorInt2; if (this.x != v.x || this.y != v.y) { return(false); } return(true); }
public VectorInt2(VectorInt2 v2) { this.x = v2.x; this.y = v2.y; }