Path Finder (2D/3D) 1.0.1
Create and use simple navigation graphs for 2D/3D path finding with choice of 4 search algorithms.
pathfinder.AshCrowFlight Class Reference
Inheritance diagram for pathfinder.AshCrowFlight:

Public Member Functions

 AshCrowFlight ()
 
 AshCrowFlight (double factor)
 
double getCost (GraphNode node, GraphNode target)
 
double getCost (GraphNode node, GraphNode target)
 

Detailed Description

This class is used to calculate the heuristic estimated-cost-to-goal.

It estimates the cost to goal as the Euclidean (as the crow flies) distance between the current node and the goal.

It is also possible to apply a scaling factor to the heuristic.

Author
Peter Lager

Constructor & Destructor Documentation

◆ AshCrowFlight() [1/2]

pathfinder.AshCrowFlight.AshCrowFlight ( )

Will use a factor of 1.0 to calculate the estimated cost between nodes

◆ AshCrowFlight() [2/2]

pathfinder.AshCrowFlight.AshCrowFlight ( double  factor)

Create the heuristic.

Parameters
factorscaling factor

Member Function Documentation

◆ getCost()

double pathfinder.AshCrowFlight.getCost ( GraphNode  node,
GraphNode  target 
)

Estimate the cost between the node and the target.

Implements pathfinder.AstarHeuristic.


The documentation for this class was generated from the following file: