GridWalkable<E>.diagonal constructor
Creates a new lazily built weighted graph from a grid
.
Each diagonal, or ordinal direction is connected to each node.
Implementation
factory GridWalkable.diagonal(
Grid<E> grid, {
double Function(E, E, Pos) weight = _defaultWeight,
}) {
return GridWalkable._(
grid,
Direction.ordinal,
weight,
);
}