Esempio n. 1
0
 public DoubleRect(DoublePoint pt, DoubleSize size)
 {
     this.x = pt.X;
     this.y = pt.Y;
     this.width = size.Width;
     this.height = size.Height;
 }
Esempio n. 2
0
 public bool Contains(DoublePoint pt)
 {
     // TODO verify this
     return (pt.X >= this.X &&
             pt.X <= this.X + this.width &&
             pt.Y >= this.Y &&
             pt.Y <= this.Y + this.height);
 }