Example #1
0
        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);
        }
Example #2
0
 public static ExtPoint Subtract(ExtPoint pt, ExtSize sz)
 {
     return(new ExtPoint(pt.X - sz.Width, pt.Y - sz.Height));
 }
Example #3
0
 public static ExtPoint Add(ExtPoint pt, ExtSize sz)
 {
     return(new ExtPoint(pt.X + sz.Width, pt.Y + sz.Height));
 }