Mappy_Map2D.Tile.Intersects C# (CSharp) Method

Intersects() public static method

public static Intersects ( Rectangle objDestRect, Tile a ) : bool
objDestRect Microsoft.Xna.Framework.Rectangle
a Tile
return bool
        public static bool Intersects(Rectangle objDestRect, Tile a)
        {
            if (objDestRect.Intersects(a.DestRect))
            {
                return true;
            }

            return false;
        }