Tile.intersection

Rect intersection(Rect otherArea) @safe nothrow @nogc

Returns the intersection rectangle of the tile area and the given rectangle.

Rect intersection(Tile otherTile) @safe nothrow @nogc

Returns the intersection rectangle of the tile area and another tile.