Exemplo n.º 1
0
 /// <summary>
 /// Returns true if the region of the node contains the point
 /// other false
 /// </summary>
 /// <param name="p"></param>
 /// <returns></returns>
 public bool IsInRegion(Point p)
 {
     return(region.IsInRectangle(p));
 }
Exemplo n.º 2
0
 public bool Intersects(Rectangle rectangle)
 {
     return IsInRectangle(rectangle.TopLeftPoint) ||
            rectangle.IsInRectangle(this.TopLeftPoint);
 }
Exemplo n.º 3
0
 public bool Intersects(Rectangle rectangle)
 {
     return(IsInRectangle(rectangle.TopLeftPoint) ||
            rectangle.IsInRectangle(this.TopLeftPoint));
 }