cellsWithin

fun cellsWithin(cell: Cell, radius: Int, metric: GridMetric = GridMetric.CHEBYSHEV, includeSelf: Boolean = false): List<Cell>(source)

All cells within radius of cell under the given metric. Excludes cell itself unless includeSelf is true. Cells outside the bounds are dropped for non-torus grids.