func (n *GridNode) ActualDistanceToNeighbor(node astar.Node) float64 {
	if isDiagonal(n, node.(*GridNode)) {
		return math.Sqrt2 * n.Cost
	}
	return n.Cost
}
// ActualDistanceToNeighbor get distance to a neighbor
ActualDistanceToNeighbor get distance to a neighbor
// ActualDistanceToNeighbor get distance to a neighbor
func (n *GridNode) ActualDistanceToNeighbor(node astar.Node) float64 {
	if isDiagonal(n, node.(*GridNode)) {
		return math.Sqrt2 * n.Cost
	}
	return n.Cost
}
func ( n * GridNode ) ActualDistanceToNeighbor ( node astar . Node ) float64 { if isDiagonal ( n , node . ( * GridNode ) ) { return math . Sqrt2 * n . Cost } return n . Cost }
ActualDistanceToNeighbor get distance to a neighbor
ActualDistanceToNeighbor get distance to a neighbor