Tile.intersection

Rect intersection(Rect otherArea)

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

Rect intersection(Tile otherTile)

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