Voxelyze
Public Member Functions | Public Attributes
Index3D Struct Reference

A generic three-integer index container (for X, Y, Z) for use with the CArray3D class. More...

#include <Array3D.h>

List of all members.

Public Member Functions

 Index3D ()
 Default constructor. Indices will be invalid until set.
 Index3D (int inX, int inY, int inZ)
 Constructs with the specified indices.
 Index3D (const Index3D &i3D)
 Copy constructor.
Index3Doperator= (const Index3D &i3D)
 Overload equals.
const Index3D operator+ (const Index3D &i3D) const
 Adds an Index3D to this one. Indices are added individually.
const Index3D operator- (const Index3D &i3D) const
 Subtracts an Index3D from this one. Indices are subtracted individually.
bool operator== (const Index3D &i3D) const
 Two index3Ds are equal only if all indices are equal.
bool operator!= (const Index3D &i3D) const
 Two index3Ds are not equal if any indices are not equal.
bool valid ()
 Returns true if all indices are valid.

Public Attributes

int x
 Current X index.
int y
 Current Y index.
int z
 Current Z index.

Detailed Description

A generic three-integer index container (for X, Y, Z) for use with the CArray3D class.

Indices do not have a default and can be invalid. If any indices are invalid valid() will return false.


The documentation for this struct was generated from the following file:
 All Classes Functions Variables Enumerations Enumerator Friends