Returns a legal position for a cell based on grid size and bounds wrapping logic.
grid
bounds
When wrapping for JaggedGrids, the row is wrapped first, and then column based on the number of columns for that row.
Optional
Returns a legal position for a cell based on
gridsize andboundswrapping logic.When wrapping for JaggedGrids, the row is wrapped first, and then column based on the number of columns for that row.