Functions§
- hex_
distance - Returns the hex distance between two axial coordinates.
Calculated as
max(|dq|, |dr|, |dq + dr|). - hex_
offsets - Returns all (dq, dr) offsets within hex-distance ≤
radiusof the origin. Used for legal move generation and cache updates.