|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Offset coordinates (col, row) for visualisation.
More...
#include <tpl_ca_hex_lattice.H>
Public Attributes | |
| ca_index_t | col = 0 |
| ca_index_t | row = 0 |
Friends | |
| constexpr bool | operator== (Hex_Offset a, Hex_Offset b) noexcept |
| constexpr bool | operator!= (Hex_Offset a, Hex_Offset b) noexcept |
Offset coordinates (col, row) for visualisation.
Even-r and odd-r conventions are supported through dedicated conversions. Use the offset coords when you need to print the hex grid as a rectangular table where every other row is shifted by half a column.
Definition at line 114 of file tpl_ca_hex_lattice.H.
|
friend |
Definition at line 123 of file tpl_ca_hex_lattice.H.
|
friend |
Definition at line 119 of file tpl_ca_hex_lattice.H.
| ca_index_t Aleph::CA::Hex_Offset::col = 0 |
Definition at line 116 of file tpl_ca_hex_lattice.H.
| ca_index_t Aleph::CA::Hex_Offset::row = 0 |
Definition at line 117 of file tpl_ca_hex_lattice.H.