Create a new Grid
Cell values
Private
Readonly
centerCenter point of the grid
Height of the grid, in cells
Width of the grid, in cells
Copy values from another grid
Fill the grid with a specified value
Invokes a handler for each cell in the grid
Invokes a handler for each cell adjacent to a given cell
Invokes a handler for each cell within a given area
Gets the value of a cell by its x,y coordinates
Returns a bit mask indicating which adjacent cells are equal
Private
indexReturns the x coordinate of a given grid index
Private
indexReturns the y coordinate of a given grid index
"Paste" the contents of another grid at specified location
Cast a ray and return information about cells hit, etc
Optional
result: IGridRaycastResultResize grid
Rotate this grid clockwise by 90 degrees, a given number of times
Rotate a given point within this grid around its center
Sets the value of a cell by its x,y coordinates
Sets the value of a cell by its index
Returns whether or not a given x,y coordinate is a valid cell
Converts an x,y coordinate into a flattened index
Static
fromCreate a grid from a set of strings (one row per string)
Generated using TypeDoc
2D grid of numeric values