This class stores the sorted indices of an edge.
More...
#include <Delaunay.h>
|
| | IndexEdge (const unsigned int indexFirst, const unsigned int indexSecond) |
| | Creates a new edge object and sorts the provided two point indices to ensure that the first index is smaller than the second index.
|
| |
| | IndexEdge (const unsigned int indexFirst, const unsigned int indexSecond, const Vector2 *points) |
| | Creates a new edge object and sorts the provided two point indices to ensure that the point of the first index is 'smaller' than the point of the second index.
|
| |
| unsigned int | firstIndex () const |
| | Returns the index of the first point.
|
| |
| unsigned int | secondIndex () const |
| | Returns the index of the second point.
|
| |
| bool | operator< (const IndexEdge &right) const |
| | Lesser operator for two edge objects.
|
| |
|
| unsigned int | firstIndex_ = (unsigned int)(-1) |
| | The index of the first point.
|
| |
| unsigned int | secondIndex_ = (unsigned int)(-1) |
| | The index of the second point.
|
| |
This class stores the sorted indices of an edge.
◆ IndexEdge() [1/2]
| Ocean::Geometry::Delaunay::IndexEdge::IndexEdge |
( |
const unsigned int |
indexFirst, |
|
|
const unsigned int |
indexSecond |
|
) |
| |
|
inline |
Creates a new edge object and sorts the provided two point indices to ensure that the first index is smaller than the second index.
- Parameters
-
| indexFirst | The index of the first point |
| indexSecond | The index of the second point, must be different from indexFirst |
◆ IndexEdge() [2/2]
| Ocean::Geometry::Delaunay::IndexEdge::IndexEdge |
( |
const unsigned int |
indexFirst, |
|
|
const unsigned int |
indexSecond, |
|
|
const Vector2 * |
points |
|
) |
| |
|
inline |
Creates a new edge object and sorts the provided two point indices to ensure that the point of the first index is 'smaller' than the point of the second index.
- Parameters
-
| indexFirst | The index of the first point |
| indexSecond | The index of the second point, must be different from indexFirst |
| points | The points to be used for sorting, must be valid, ensure that enough points are provided |
◆ firstIndex()
| unsigned int Ocean::Geometry::Delaunay::IndexEdge::firstIndex |
( |
| ) |
const |
|
inline |
Returns the index of the first point.
- Returns
- The point's first index
◆ operator<()
| bool Ocean::Geometry::Delaunay::IndexEdge::operator< |
( |
const IndexEdge & |
right | ) |
const |
|
inline |
Lesser operator for two edge objects.
- Parameters
-
| right | The second edge object to compare |
- Returns
- True, if this edge object is 'lesser' than the second one
◆ secondIndex()
| unsigned int Ocean::Geometry::Delaunay::IndexEdge::secondIndex |
( |
| ) |
const |
|
inline |
Returns the index of the second point.
- Returns
- The point's second index
◆ firstIndex_
| unsigned int Ocean::Geometry::Delaunay::IndexEdge::firstIndex_ = (unsigned int)(-1) |
|
protected |
The index of the first point.
◆ secondIndex_
| unsigned int Ocean::Geometry::Delaunay::IndexEdge::secondIndex_ = (unsigned int)(-1) |
|
protected |
The index of the second point.
The documentation for this class was generated from the following file: