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; }
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); }