class documentation

class DistanceMetric(enum.Enum): (source)

View In Hierarchy

An enum for selecting distance metrics for grids.

Grid distance metrics are:

  • Chebyshev (CHEBYSHEV) which is the larger of the number of x or y moves
    in the grid.
  • Manhattan (MANHATTAN) which is the number of moves between the two points
    following the grid. Or
  • Euclidean (EUCLIDEAN) which is the length of the direct route.
Constant CHEBYSHEV Undocumented
Constant EUCLIDEAN Undocumented
Constant MANHATTAN Undocumented
CHEBYSHEV = (source)

Undocumented

Value
enum.auto()
EUCLIDEAN = (source)

Undocumented

Value
enum.auto()
MANHATTAN = (source)

Undocumented

Value
enum.auto()