distance
Calculates the hexagonal distance between two points given by their (q, r) coordinates.
Return
The calculated distance.
Parameters
from Q
The 'q' coordinate of the first point.
from R
The 'r' coordinate of the first point.
to Q
The 'q' coordinate of the second point.
to R
The 'r' coordinate of the second point.
Calculates the hexagonal distance from this coordinate to another.
Return
The distance.
Parameters
other
The other coordinate.