Represents a grid structure. Can be drawn via a SpriteBatch
More...
|
| Grid (int rows, int cols, int rowSize, int colSize) |
| Initializes a new instance of the T:MB2D.Geometry.Grid class. More...
|
|
Represents a grid structure. Can be drawn via a SpriteBatch
§ Grid()
MB2D.Geometry.Grid.Grid |
( |
int |
rows, |
|
|
int |
cols, |
|
|
int |
rowSize, |
|
|
int |
colSize |
|
) |
| |
|
inline |
Initializes a new instance of the T:MB2D.Geometry.Grid class.
- Parameters
-
rows | Number of rows |
cols | Number of columns |
rowSize | Size of each row |
colSize | Size of each column |
§ CellSize
Vector2 MB2D.Geometry.Grid.CellSize |
|
get |
Gets the size of each cell.
The size of each cell.
§ ColCount
int MB2D.Geometry.Grid.ColCount |
|
getset |
Gets or sets the number of columns.
The colomn count.
§ ColSize
int MB2D.Geometry.Grid.ColSize |
|
getset |
Gets or sets the size of each column.
The size of each column.
§ RowCount
int MB2D.Geometry.Grid.RowCount |
|
getset |
Gets or sets the number of rows.
The row count.
§ RowSize
int MB2D.Geometry.Grid.RowSize |
|
getset |
Gets or sets the size of each row.
The size of each row.
The documentation for this class was generated from the following file:
- MB2D/src/Geometry/Grid.cs