Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::CA::Hex_Offset Struct Reference

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
 

Detailed Description

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.

Friends And Related Symbol Documentation

◆ operator!=

constexpr bool operator!= ( Hex_Offset  a,
Hex_Offset  b 
)
friend

Definition at line 123 of file tpl_ca_hex_lattice.H.

◆ operator==

constexpr bool operator== ( Hex_Offset  a,
Hex_Offset  b 
)
friend

Definition at line 119 of file tpl_ca_hex_lattice.H.

Member Data Documentation

◆ col

ca_index_t Aleph::CA::Hex_Offset::col = 0

Definition at line 116 of file tpl_ca_hex_lattice.H.

◆ row

ca_index_t Aleph::CA::Hex_Offset::row = 0

Definition at line 117 of file tpl_ca_hex_lattice.H.


The documentation for this struct was generated from the following file: