|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Chebyshev (L-infinity) distance heuristic for 8-connected grids. More...
#include <IDA_Star.H>
Public Types | |
| using | Distance_Type = typename Distance::Distance_Type |
Public Member Functions | |
| Distance_Type | operator() (typename GT::Node *from, typename GT::Node *to) const |
Chebyshev (L-infinity) distance heuristic for 8-connected grids.
For grids where diagonal movement is allowed, the Chebyshev distance (also called chessboard distance) is an admissible heuristic. It equals max(|dx|, |dy|).
Assumes node info has x and y fields.
Definition at line 123 of file IDA_Star.H.
| using Aleph::Chebyshev_Heuristic< GT, Distance >::Distance_Type = typename Distance::Distance_Type |
Definition at line 125 of file IDA_Star.H.
|
inline |
Definition at line 127 of file IDA_Star.H.
References GTNodeCommon< NodeInfo >::get_info().