// DijkstraMapAt returns the cost associated to a position in the last computed
// Dijkstra map. It returns maxCost + 1 if the position is out of range.
DijkstraMapAt returns the cost associated to a position in the last computed
Dijkstra map. It returns maxCost + 1 if the position is out of range.
// DijkstraMapAt returns the cost associated to a position in the last computed // Dijkstra map . It returns maxCost + 1 if the position is out of range .
func (pr *PathRange) DijkstraMapAt(p gruid.Point) int {
	n := pr.DijkstraNodes.at(pr, p)
	if n == nil {
		return pr.DijkstraUnreachable
	}
	return n.Cost
}
func ( pr * PathRange ) DijkstraMapAt ( p gruid . Point ) int { n := pr . DijkstraNodes . at ( pr , p ) if n == nil { return pr . DijkstraUnreachable } return n . Cost }
DijkstraMapAt returns the cost associated to a position in the last computed
Dijkstra map.
DijkstraMapAt returns the cost associated to a position in the last computed Dijkstra map .