Assignments
Assignments
Ray::TriangleIndex Class Reference

#include <triangle.h>

Public Member Functions

 TriangleIndex (void)
 
 TriangleIndex (unsigned int i0, unsigned int i1, unsigned int i2)
 
GLuint & operator[] (int idx)
 
const GLuint & operator[] (int idx) const
 

Private Attributes

GLuint _indices [3]
 

Detailed Description

A simple class for storing a triplet of triangle indices.

Constructor & Destructor Documentation

◆ TriangleIndex() [1/2]

Ray::TriangleIndex::TriangleIndex ( void  )
inline

The default constructor

◆ TriangleIndex() [2/2]

Ray::TriangleIndex::TriangleIndex ( unsigned int  i0,
unsigned int  i1,
unsigned int  i2 
)
inline

The constructor assigning the vertex indices

Member Function Documentation

◆ operator[]() [1/2]

GLuint & Ray::TriangleIndex::operator[] ( int  idx)
inline

This operator returns a reference to the vertex index.

◆ operator[]() [2/2]

const GLuint & Ray::TriangleIndex::operator[] ( int  idx) const
inline

This operator returns a reference to the vertex index.

Member Data Documentation

◆ _indices

GLuint Ray::TriangleIndex::_indices[3]
private

The indices of the triangle vertices


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