Edge that contains two vertices (its endpoints or corners)
More...
|
| | Edge (V &corner0, V &corner1) |
| | Edge constructor More...
|
| |
| V & | operator[] (std::size_t cornerIndex) |
| | Accesses a corner of the edge. More...
|
| |
| const V & | operator[] (std::size_t cornerIndex) const |
| | Accesses a corner of the edge (const overload). More...
|
| |
template<typename V>
class thor::Edge< V >
Edge that contains two vertices (its endpoints or corners)
- Template Parameters
-
| V | The type of the vertices, for which the template thor::TriangulationTraits shall be specialized. If V is const-qualified, the corners cannot be changed through this edge. |
Edge constructor
The vertices startPoint and endPoint form the two "corners" of the edge. They are only referenced and not copied.
template<typename V >
| V& thor::Edge< V >::operator[] |
( |
std::size_t |
cornerIndex | ) |
|
Accesses a corner of the edge.
- Parameters
-
| cornerIndex | The index of the corner. Must be either 0 or 1. |
- Returns
- Reference to the vertex at the specified corner.
template<typename V >
| const V& thor::Edge< V >::operator[] |
( |
std::size_t |
cornerIndex | ) |
const |
Accesses a corner of the edge (const overload).
- Parameters
-
| cornerIndex | The 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: