Legend
| Constructor: Grid( |
| int | width | Width of the grid. |
| int | height | Height of the grid. |
| bool | toroidalX |
If true, treats the grid as horizontally toroidal (the left/right edges wrap around). |
| bool | toroidalY |
If true, treats the grid as vertically toroidal (the top/bottom edges wrap around). |