TileMap.isTileAt

Check whether a tile exist on the given Coordinates. If idx isn't null, the calculated index of the Tile at the given position is stored there.

Note: The position must be in tile coordinates, not pixel coordinates.

  1. bool isTileAt(Vector2s vec, uint* idx)
  2. bool isTileAt(short x, short y, uint* idx)
    class TileMap
    final const pure nothrow
    bool
    isTileAt
    (
    short x
    ,
    short y
    ,
    uint* idx = null
    )

Meta