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

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
 

Detailed Description

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.

Friends And Related Symbol Documentation

◆ operator!=

constexpr bool operator!= ( const Tri_Coord &  a,
const Tri_Coord &  b 
)
friend

Definition at line 93 of file tpl_ca_triangular_lattice.H.

◆ operator==

constexpr bool operator== ( const Tri_Coord &  a,
const Tri_Coord &  b 
)
friend

Definition at line 89 of file tpl_ca_triangular_lattice.H.

Member Data Documentation

◆ i

◆ j


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