SparseGrid is a collection for managing grid of values where grid squares may or may not actually contain a value.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Empty the grid
Empty the grid
Attributes
Takes all of the 'set' entries of 'other' and puts them into this grid.
Takes all of the 'set' entries of 'other' and puts them into this grid.
Attributes
Fill the grid with the given value
Fill the grid with the given value
Attributes
Fill a circle on the grid with a value
Fill a circle on the grid with a value
Attributes
Fill a line (bresenham) with a value
Fill a line (bresenham) with a value
Attributes
Fill a line (bresenham) with a value
Fill a line (bresenham) with a value
Attributes
Fill a rectangle on the grid with a value
Fill a rectangle on the grid with a value
Attributes
Get the value at the given coordinates
Get the value at the given coordinates
Attributes
Combines two grids be insetting one within the other, at an offset.
Combines two grids be insetting one within the other, at an offset.
Attributes
Map over and modify all the points on the grid
Map over and modify all the points on the grid
Attributes
Map over and modify all the points on the grid that are within the circle
Map over and modify all the points on the grid that are within the circle
Attributes
Map over the grid squares on a line (bresenham) and modify
Map over the grid squares on a line (bresenham) and modify
Attributes
Map over the grid squares on a line (bresenham) and modify
Map over the grid squares on a line (bresenham) and modify
Attributes
Map over and modify all the points on the grid that are within the rectangle
Map over and modify all the points on the grid that are within the rectangle
Attributes
Modify a specific point on the grid
Modify a specific point on the grid
Attributes
Put a value into the grid
Put a value into the grid
Attributes
Put a batch of values into the grid
Put a batch of values into the grid
Attributes
Put a batch of values into the grid, at an offset position
Put a batch of values into the grid, at an offset position
Attributes
Put repeating values into the grid
Put repeating values into the grid
Attributes
Remove the value at the given coordinates
Remove the value at the given coordinates
Attributes
Returns all set values, guarantees order.
Returns all set values, guarantees order.
Attributes
Returns all set values and a default for any value that is not present, guarantees order.
Returns all set values and a default for any value that is not present, guarantees order.
Attributes
Returns all values in a given region.
Returns all values in a given region.
Attributes
Returns all values in a given region, or the provided default for any missing values.
Returns all values in a given region, or the provided default for any missing values.
Attributes
Returns all set values with their grid positions.
Returns all set values with their grid positions.
Attributes
Returns all values with their grid positions in a given region.
Returns all values with their grid positions in a given region.
Attributes
Alias for combine
. Takes all of the 'set' entries of 'other' and puts them into this grid.
Alias for combine
. Takes all of the 'set' entries of 'other' and puts them into this grid.