Class AStar

    • Constructor Detail

      • AStar

        public AStar()
    • Method Detail

      • heuristic

        protected float heuristic​(Node node,
                                  Node end)
        Description copied from class: Dijkstra
        Calculates the heuristic value which is an estimated distance between the given node and the end node.
        Overrides:
        heuristic in class Dijkstra
        Parameters:
        node - start node
        end - end node
        Returns:
        the heuristic value