Cafu Engine
CVS_IndexT Class Reference

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
 

Detailed Description

Index datastructure that stores the logical position on the grid.

Constructor & Destructor Documentation

CVS_IndexT::CVS_IndexT ( int  x_,
int  y_ 
)
inline

Constructor for creating an index instance from a given x_ and y_.

Member Function Documentation

static CVS_IndexT CVS_IndexT::GetBase ( CVS_IndexT  i,
CVS_IndexT  j,
bool  parity,
bool  direction 
)
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.

static CVS_IndexT CVS_IndexT::GetSplit ( CVS_IndexT  i,
CVS_IndexT  j,
bool  parity,
bool  direction 
)
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.


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