Tinkr2/4.2/AphelionCore/AphelionCore/Core/TypeDef.cs
/// <summary>
/// Checks to see if two rectangles intersect
/// </summary>
/// <param name="area">rectangle to check</param>
/// <returns>true if rectangles intersect; else false</returns>
Checks to see if two rectangles intersect
Checks to see if two rectangles intersect
public bool Intersects(rect area)
      {
         return !(area.X >= (_x + _w)
                 || (area.X + area.Width) <= _x
                 || area.Y >= (_y + _h)
                 || (area.Y + area.Height) <= _y
                 );
      }
public bool Intersects ( rect area ) { return ! ( area . X >= ( _x + _w ) || ( area . X + area . Width ) <= _x || area . Y >= ( _y + _h ) || ( area . Y + area . Height ) <= _y ) ; }
Checks to see if two rectangles intersect
Checks to see if two rectangles intersect
true if rectangles intersect; else false
true if rectangles intersect ; else false
area
rect
rectangle to check
rectangle to check