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