RectGrid.numCols

Number of columns along a grid's x axis.

struct RectGrid(T)
numCols
(
)
if (
isArray2D!T
)

Examples

1 auto grid = rectGrid([
2   [ 0, 0, 0, 0 ],
3   [ 0, 0, 0, 0 ],
4 ]);
5 
6 assert(grid.numCols == 4);

Meta