|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Coordinates of a triangular cell as (i, j) integers.
More...
#include <tpl_ca_triangular_lattice.H>
Public Attributes | |
| ca_index_t | i = 0 |
| ca_index_t | j = 0 |
Friends | |
| constexpr bool | operator== (const Tri_Coord &a, const Tri_Coord &b) noexcept |
| constexpr bool | operator!= (const Tri_Coord &a, const Tri_Coord &b) noexcept |
Coordinates of a triangular cell as (i, j) integers.
The axis-0 component (i) selects the row; the axis-1 component (j) selects the column. Parity (i + j) & 1 determines the triangle's orientation:
parity == 0 ⇒ up triangle.parity == 1 ⇒ down triangle. Definition at line 84 of file tpl_ca_triangular_lattice.H.
Definition at line 93 of file tpl_ca_triangular_lattice.H.
Definition at line 89 of file tpl_ca_triangular_lattice.H.
| ca_index_t Aleph::CA::Tri_Coord::i = 0 |
| ca_index_t Aleph::CA::Tri_Coord::j = 0 |