Exemple #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));
 }
 public bool Intersects(Rectangle rectangle)
 {
     return IsInRectangle(rectangle.TopLeftPoint) ||
            rectangle.IsInRectangle(this.TopLeftPoint);
 }
 public bool Intersects(Rectangle rectangle)
 {
     return(IsInRectangle(rectangle.TopLeftPoint) ||
            rectangle.IsInRectangle(this.TopLeftPoint));
 }