FlowField

constructor(graph: GridGraph, sources: Set<Cell>, cellSize: Double = Defaults.cellSize, origin: Point2D = Defaults.origin)(source)

Parameters

graph

the underlying lattice

sources

cells treated as goals (distance = 0). Must not be empty.

cellSize

side length of each cell in continuous space. Must be positive.

origin

continuous-space anchor of cell (0, 0)'s lower-left corner.