GTileMap.gridPointAt

IVec2 gridPointAt(float worldX, float worldY) @nogc @safe nothrow

Returns the grid coordinates of the tile that contains the given world position.

IVec2 gridPointAt(Vec2 worldPoint) @nogc @safe nothrow

Returns the grid coordinates of the tile that contains the given world point.