OmegaEngine API
1.0.3
|
Builds a rectangle array that can grow in any direction. More...
Public Member Functions | |
void | AddFirst (Point start, [NotNull] T[,] array) |
Insert a new subset array before any existing entries growing the rectangle as necessary. More... | |
void | AddLast (Point start, [NotNull] T[,] array) |
Insert a new subset array after any existing entries growing the rectangle as necessary. More... | |
T [,] | GetArray () |
Returns the smallest possible array that encompasses all inserted subsets. Blanks between subsets are filled with the default value for T . More... | |
T [,] | GetArray ([NotNull] T[,] baseValues) |
Returns the smallest possible array that encompasses all inserted subsets and can be backed by a base array. More... | |
T [,] | GetArray ([NotNull] Grid< T > baseValues) |
Returns the smallest possible array that encompasses all inserted subsets and can be backed by a base array. More... | |
Properties | |
Rectangle | TotalArea [get] |
The total area the rectangle currently encompasses. More... | |
Builds a rectangle array that can grow in any direction.
T | The type of elements to store in the array. |
T | : | struct |
|
inline |
Insert a new subset array before any existing entries growing the rectangle as necessary.
start | The top-left coordinates of the area to insert the array into. |
array | The array to insert. Do not modify this array after calling this method! |
|
inline |
Insert a new subset array after any existing entries growing the rectangle as necessary.
start | The top-left coordinates of the area to insert the array into. |
array | The array to insert. Do not modify this array after calling this method! |
|
inline |
Returns the smallest possible array that encompasses all inserted subsets. Blanks between subsets are filled with the default value for T .
|
inline |
Returns the smallest possible array that encompasses all inserted subsets and can be backed by a base array.
baseValues | An array to query for values to fill the blanks left between subsets. |
|
inline |
Returns the smallest possible array that encompasses all inserted subsets and can be backed by a base array.
baseValues | An array to query for values to fill the blanks left between subsets. |
|
get |
The total area the rectangle currently encompasses.