Bromeon
Public Member Functions
thor::Edge< VertexType > Class Template Reference

Edge that contains two vertices (its endpoints) More...

List of all members.

Public Member Functions

 Edge (const VertexType &startPoint, const VertexType &endPoint)
 Edge constructor
const VertexType & operator[] (unsigned int cornerIndex) const
 Accesses a "corner" of the edge.

Detailed Description

template<class VertexType>
class thor::Edge< VertexType >

Edge that contains two vertices (its endpoints)

Template Parameters:
VertexTypeThe type of the vertices. Should be thor::Vertex or derived from thor::Vertex.

Constructor & Destructor Documentation

template<class VertexType>
thor::Edge< VertexType >::Edge ( const VertexType &  startPoint,
const VertexType &  endPoint 
)

Edge constructor

The vertices startPoint and endPoint form the two "corners" of the edge. They are only referenced and not copied.


Member Function Documentation

template<class VertexType>
const VertexType& thor::Edge< VertexType >::operator[] ( unsigned int  cornerIndex) const

Accesses a "corner" of the edge.

Parameters:
cornerIndexThe index of the corner. Must be either 0 or 1.
Returns:
Const-reference to the vertex at the specified corner.

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