DistanceGrid

floodsim.model.grid.DistanceGrid
See theDistanceGrid companion trait
object DistanceGrid

Factory for building DistanceGrid.

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def filledWith[T <: GridElement](width: Int, height: Int, element: T): DistanceGrid[T]

Creates a DistanceGrid fully filled with the same element.

Creates a DistanceGrid fully filled with the same element.

Type parameters

T

element type

Value parameters

element

element to assign to each coordinate

height

grid height (>= 1)

width

grid width (>= 1)

Attributes

Returns

immutable DistanceGrid instance