示例#1
0
 public URect(UPoint point, USize size)
 {
     this.X      = (int)point.X;
     this.Y      = (int)point.Y;
     this.Width  = (int)size.Width;
     this.Height = (int)size.Height;
 }
示例#2
0
        public override bool Equals(object obj)
        {
            if (!(obj is UPoint))
            {
                return(false);
            }

            UPoint point = (UPoint)obj;

            if (object.Equals(point, null))
            {
                return(false);
            }

            return(X == point.X && Y == point.Y);
        }