Edge that contains two vertices (its endpoints) More...
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. | |
Edge that contains two vertices (its endpoints)
| VertexType | The type of the vertices. Should be thor::Vertex or derived from thor::Vertex. |
| 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.
| const VertexType& thor::Edge< VertexType >::operator[] | ( | unsigned int | cornerIndex | ) | const |
Accesses a "corner" of the edge.
| cornerIndex | The index of the corner. Must be either 0 or 1. |