Method GetHexagons
GetHexagons(bool)
Reconstructs the hexagon cells described by the current trace.
public List<Hexagon2D> GetHexagons(bool makeUnique = false)
Parameters
makeUniqueboolWhen true, revisited cells are omitted from the returned list; otherwise, the returned sequence preserves the authored walk, including repeated visits.
Returns
- List<Hexagon2D>
A list beginning with the origin hexagon, followed by each walked-to cell reconstructed from the stored directions.
Remarks
Uniqueness is determined by approximate center distance, not exact structural equality. Two cells are considered the same when their centers are closer than one hex radius.