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