public override bool Equals(object obj) { if (!(obj is ExtPoint)) { return(false); } ExtPoint point = (ExtPoint)obj; return(point.X == this.X && point.Y == this.Y); }
public static ExtPoint Subtract(ExtPoint pt, ExtSize sz) { return(new ExtPoint(pt.X - sz.Width, pt.Y - sz.Height)); }
public static ExtPoint Add(ExtPoint pt, ExtSize sz) { return(new ExtPoint(pt.X + sz.Width, pt.Y + sz.Height)); }