Index datastructure that stores the logical position on the grid. More...
Public Member Functions | |
CVS_IndexT (int x_, int y_) | |
Constructor for creating an index instance from a given x_ and y_. More... | |
Static Public Member Functions | |
static CVS_IndexT | GetSplit (CVS_IndexT i, CVS_IndexT j, bool parity, bool direction) |
Named constructor. More... | |
static CVS_IndexT | GetBase (CVS_IndexT i, CVS_IndexT j, bool parity, bool direction) |
Named constructor. More... | |
Public Attributes | |
int | x |
int | y |
Index datastructure that stores the logical position on the grid.
|
inline |
Constructor for creating an index instance from a given x_ and y_.
|
inlinestatic |
Named constructor.
It takes an index i that is the tip (apex) of a triangle, and an index j that is the center of the base of the triangle, and returns, depending on parity and direction, the index of the left or right base vertex.
|
inlinestatic |
Named constructor.
It takes an index i that is the tip (apex) of a triangle, and an index j that is the center of the base of the triangle, and returns, depending on parity and direction, the index of the left or right vertex at the center of the split edge.