Ejemplo n.º 1
0
 public bool Contains(RectangleF r)
 {
     return !((r.Left < this.Left) || (r.Top < this.Top) || (r.Bottom > this.Bottom) || (r.Right > this.Right));
 }
Ejemplo n.º 2
0
 public bool Intersects(RectangleF r)
 {
     return !((r.Left > this.Right) || (r.Right < this.Left) || (r.Top > this.Bottom) || (r.Bottom < this.Top));
 }