1 // 2 rows, 3 cols, 32x64 tiles 2 auto grid = [ 3 [ 00, 01, 02, ], 4 [ 10, 11, 12, ], 5 ]; 6 auto myMap = OrthoMap!int(grid, 32, 64); 7 8 assert(myMap.tileCenter(RowCol(0, 0)) == PixelCoord(16, 32)); 9 assert(myMap.tileCenter(RowCol(1, 2)) == PixelCoord(80, 96));
Get the pixel offset of the center of the tile at the given coord.