pub fn plan_tiles(
world: &WorldBlock,
range: Option<[i32; 4]>,
) -> Result<Vec<(i32, i32)>>Expand description
The tiles of a run, in the order of spec 8.4.
The range is clamped to the grid: lower bounds to 0, an upper bound below 0 or beyond the grid to the
last tile. The range is cut into square blocks of blockSize tiles starting at the range’s
own corner; blocks go row by row (z outer), and inside a block the tiles go row by row too.
§Errors
“empty tile range” when nothing is left of the range; “tile range too large (N tiles, limit 4194304)” above 2^22 tiles.