Returns the last cell of a grid, row-wise
For uniform grids, this is simply { x: grid.cols - 1, y: grid.rows - 1 }.
{ x: grid.cols - 1, y: grid.rows - 1 }
For jagged grids, the last position is the last cell of the last row, in this case { x: 0, y: 3 } (position 8).
{ rows: [2, 3, 3, 1] }0 12 3 45 6 78 Copy
{ rows: [2, 3, 3, 1] }0 12 3 45 6 78
See also firstCellColumnwise
Returns the last cell of a grid, row-wise
For uniform grids, this is simply
{ x: grid.cols - 1, y: grid.rows - 1 }.For jagged grids, the last position is the last cell of the last row, in this case { x: 0, y: 3 } (position 8).
See also firstCellColumnwise