Companion
object Companion
Functions
Link copied to clipboard
fun findCellsWithMaximumElements(cells: List<RectangularGridSpatialModel2D.RectangularCell2D>): List<RectangularGridSpatialModel2D.RectangularCell2D>
Across all the cells, which cells have the maximum number of elements in cells
Link copied to clipboard
fun findCellsWithMinimumElements(cells: List<RectangularGridSpatialModel2D.RectangularCell2D>): List<RectangularGridSpatialModel2D.RectangularCell2D>
Across all the cells, which cells have the minimum number of elements in cells
Link copied to clipboard
fun findCellWithMinimumElements(cells: List<RectangularGridSpatialModel2D.RectangularCell2D>): RectangularGridSpatialModel2D.RectangularCell2D
Finds the cell that has the least number of spatial elements
Link copied to clipboard
Across all the cells, what is the maximum number of elements in cells
Link copied to clipboard
Across all the cells, what is the minimum number of elements in cells
Link copied to clipboard
A comparator based on the number of elements in the cell
Link copied to clipboard
fun sortCellsByNumElements(cells: List<RectangularGridSpatialModel2D.RectangularCell2D>): List<RectangularGridSpatialModel2D.RectangularCell2D>
Returns list of the cells sorted from smallest to largest based on the number of spacial elements in the cells