ReadonlydataData stored in the grid, in a row-continuous fashion. After changing this, you must ensure the grid is properly recomputed before attempting to retrieve the minimum value.
ReadonlysizeSide length of the grid.
ReadonlylayersReadonlydirtyStores the dirty indices of the lowest layer.
Builds an object that represents this instance's state.
Converts an index into data back into a column and a row.
Gets the index of the smallest element in data. This will only be definitely accurate if the grid has been properly recomputed since the last data change.
Gets the column and row of the smallest element in data. This will only be definitely accurate if the grid has been properly recomputed since the last data change.
Marks a row of cells to be affected by recomputeDirty. Prefer using this over individual dirtyCell calls.
Marks a column of cells to be affected by recomputeDirty. Prefer using this over individual dirtyCell calls.
Recomputes every elements. Also marks everything clean.
Recomputes all elements that have been manually marked dirty so far, and marks them as clean.
A square grid that optimizes finding the smallest element in it as values change.
If you have mutated data, you must use either: