Commit 3f75fc4
authored
cell space: Add convenience properties for grid width and height (#2348)
90% of all use cases of grid will be 2D so it is convenient to have easy access to the width and the height of the grid.
While porting the examples over to the experimental grid spaces, I frequently need to write `self.grid.dimensions[0]` etc. This makes it a bit more readable because I can just do `self.grid.width` etc.1 parent 48dc35f commit 3f75fc4
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
27 | 40 | | |
28 | 41 | | |
29 | 42 | | |
| |||
0 commit comments