Versions in this module Expand all Collapse all v0 v0.23.0 Aug 23, 2023 Changes in this version + func DistanceChebyshev(p, q gruid.Point) int + func DistanceManhattan(p, q gruid.Point) int + type Astar interface + Estimation func(gruid.Point, gruid.Point) int + type Dijkstra interface + Cost func(gruid.Point, gruid.Point) int + type Neighbors struct + func (nb *Neighbors) All(p gruid.Point, keep func(gruid.Point) bool) []gruid.Point + func (nb *Neighbors) Cardinal(p gruid.Point, keep func(gruid.Point) bool) []gruid.Point + func (nb *Neighbors) Diagonal(p gruid.Point, keep func(gruid.Point) bool) []gruid.Point + type Node struct + Cost int + P gruid.Point + type PathRange struct + func NewPathRange(rg gruid.Range) *PathRange + func (pr *PathRange) AstarPath(ast Astar, from, to gruid.Point) []gruid.Point + func (pr *PathRange) BreadthFirstMap(nb Pather, sources []gruid.Point, maxCost int) []Node + func (pr *PathRange) BreadthFirstMapAt(p gruid.Point) int + func (pr *PathRange) CCMap(nb Pather, p gruid.Point) []gruid.Point + func (pr *PathRange) CCMapAll(nb Pather) + func (pr *PathRange) CCMapAt(p gruid.Point) int + func (pr *PathRange) DijkstraMap(dij Dijkstra, sources []gruid.Point, maxCost int) []Node + func (pr *PathRange) DijkstraMapAt(p gruid.Point) int + func (pr *PathRange) GobDecode(bs []byte) error + func (pr *PathRange) GobEncode() ([]byte, error) + func (pr *PathRange) JPSPath(path []gruid.Point, from, to gruid.Point, passable func(gruid.Point) bool, ...) []gruid.Point + func (pr *PathRange) Range() gruid.Range + func (pr *PathRange) SetRange(rg gruid.Range) + type Pather interface + Neighbors func(gruid.Point) []gruid.Point