23 template<
typename TCoordinate>
29 template<
typename TCoordinate>
40template<
typename TCoordinate>
43 return std::abs(
node.first - goal.first) + std::abs(
node.second - goal.second);
48template<
typename TCoordinate>
51 return manhattenDistance < TCoordinate >;
Class extending the pair class from the standard library. Original reason is to allow printing of the...
Definition: pair.hpp:43
Definition: ManhattenDistance.hpp:18
static std::function< TCoordinate(const ext::pair< TCoordinate, TCoordinate > &, const ext::pair< TCoordinate, TCoordinate > &)> manhattenDistanceFunction()
Definition: ManhattenDistance.hpp:50
static TCoordinate manhattenDistance(const ext::pair< TCoordinate, TCoordinate > &goal, const ext::pair< TCoordinate, TCoordinate > &node)
Definition: ManhattenDistance.hpp:41
Definition: ReconstructPath.hpp:14