NeighborOptions
geometry/grid.types.ts:47Controls how neighbouring cells are enumerated by Cell.neighbors and, by extension, the moves A* considers in Grid.findPath.
Properties
diagonal?: boolean When true, the four diagonal cells are included alongside the four
orthogonal ones, giving 8-connectivity. Defaults to false
(4-connectivity).
wrap?: boolean When true, lookups that fall off an edge wrap around to the opposite
edge (the grid behaves as a torus) instead of being dropped. Defaults to
false.