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