Beispiel #1
0
 public bool Intersects(Rectangle rectangle)
 {
     return IsInRectangle(rectangle.TopLeftPoint) ||
            rectangle.IsInRectangle(this.TopLeftPoint);
 }
Beispiel #2
0
 public bool Contains(Rectangle rectangle)
 {
     return IsInRectangle(rectangle.TopLeftPoint) &&
            IsInRectangle(new Point(rectangle.TopLeftPoint.X + Width, rectangle.TopLeftPoint.Y + Height));
 }
 public RegionQuadTree(Rectangle region)
 {
     this.region = region;
     root        = new Node <T>(region, default(T), null);
 }