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 USize)) { return(false); } USize size = (USize)obj; if (object.Equals(size, null)) { return(false); } return(Width == size.Width && Height == size.Height); }