Function manhattan

Return the manhattan distance between two tile coordinates. For two coordinates a and b, this is defined as abs(a.row - b.row) + abs(a.col - b.col)

Prototype

auto long manhattan(
  RowCol a,
  RowCol b
) @nogc;

Authors

Copyright

License