Untold Engine  Beta v0.0.16
docs
U4DEngine::U4DIndex Class Reference

The U4DIndex class implements a 3D integer-only index class. It is mainly used for organizational purposes. It does not implement any computational operations. More...

Public Member Functions

 U4DIndex ()
 Constructor which creates a 3D index with its components equal to zero.
 
 U4DIndex (int nx, int ny, int nz)
 Constructor which creates a 3D index with the given x, y and z components.
 
 ~U4DIndex ()
 Destructor for the 3D index.
 
 U4DIndex (const U4DIndex &a)
 Copy constructor for the class.
 
U4DIndexoperator= (const U4DIndex &a)
 Copy constructor for the class. More...
 
void show ()
 Prints the 3D index components to the console log window.
 

Public Attributes

int x
 x-component index
 
int y
 y-component index
 
int z
 z-component index
 

Detailed Description

The U4DIndex class implements a 3D integer-only index class. It is mainly used for organizational purposes. It does not implement any computational operations.

Member Function Documentation

◆ operator=()

U4DIndex & U4DEngine::U4DIndex::operator= ( const U4DIndex a)

Copy constructor for the class.

Parameters
a3D index to copy
Returns
Returns a copy of the 3D index