Example #1
0
 /// <summary>
 /// Checks if this rectangle intersects another rectangle
 /// </summary>
 /// <param name="Rect">The rectangle to check</param>
 /// <returns>Whether or not this rectangle intersects the other</returns>
 public bool Intersects(FRect Rect)
 {
     return(!(Bottom < Rect.Top ||
              Top > Rect.Bottom ||
              Right < Rect.Left ||
              Left > Rect.Right));
 }
Example #2
0
 /// <summary>
 /// Checks if this rectangle intersects another rectangle
 /// </summary>
 /// <param name="Rect">The rectangle to check</param>
 /// <returns>Whether or not this rectangle intersects the other</returns>
 public bool Intersects(FRect Rect)
 {
     return (!( Bottom < Rect.Top ||
                Top > Rect.Bottom ||
                Right < Rect.Left ||
                Left > Rect.Right ));
 }