This class holds three indices of points representing a triangle.
More...
This class holds three indices of points representing a triangle.
◆ IndexTriangle() [1/2]
Ocean::Geometry::Delaunay::IndexTriangle::IndexTriangle |
( |
| ) |
|
|
inline |
Creates an invalid index triangle object.
◆ IndexTriangle() [2/2]
Ocean::Geometry::Delaunay::IndexTriangle::IndexTriangle |
( |
const unsigned int |
index0, |
|
|
const unsigned int |
index1, |
|
|
const unsigned int |
index2 |
|
) |
| |
|
inline |
Creates a new index triangle object.
- Parameters
-
index0 | First index |
index1 | Second index |
index2 | Third index |
◆ index0()
unsigned int Ocean::Geometry::Delaunay::IndexTriangle::index0 |
( |
| ) |
const |
|
inline |
Returns the first index.
First triangle index
◆ index1()
unsigned int Ocean::Geometry::Delaunay::IndexTriangle::index1 |
( |
| ) |
const |
|
inline |
Returns the second index.
Second triangle index
◆ index2()
unsigned int Ocean::Geometry::Delaunay::IndexTriangle::index2 |
( |
| ) |
const |
|
inline |
Returns the third index.
Third triangle index
◆ isValid()
bool Ocean::Geometry::Delaunay::IndexTriangle::isValid |
( |
| ) |
const |
|
inline |
Returns whether three individual indices are stored.
- Returns
- True, if so
◆ operator==()
bool Ocean::Geometry::Delaunay::IndexTriangle::operator== |
( |
const IndexTriangle & |
second | ) |
const |
|
inline |
Returns whether two triangles are equal (i.e.
whether both triangles are composed with the same indices, independent of their order).
- Parameters
-
second | The second triangle to test |
- Returns
- True, if both triangles are equal
◆ operator[]()
unsigned int Ocean::Geometry::Delaunay::IndexTriangle::operator[] |
( |
const unsigned int |
n | ) |
const |
|
inline |
Returns one index of this triangle.
- Parameters
-
n | The (corner) index of the triangle for which the index is returned, with range [0, 2] |
- Returns
- The requested index
◆ triangle2()
Triangle2 Ocean::Geometry::Delaunay::IndexTriangle::triangle2 |
( |
const Vector2 * |
points | ) |
const |
|
inline |
Creates a 2D triangle with positions as corners from this index triangle.
Beware: The number of points in the provided set, must exceed the maximal index, no check is done!
- Parameters
-
points | The set of points from which the corners are taken |
◆ triangle3()
Triangle3 Ocean::Geometry::Delaunay::IndexTriangle::triangle3 |
( |
const Vector3 * |
points | ) |
const |
|
inline |
Creates a 3D triangle with positions as corners from this index triangle.
Beware: The number of points in the provided set, must exceed the maximal index, not check is done!
- Parameters
-
points | The set of points from which the corners are taken |
◆ indices_
unsigned int Ocean::Geometry::Delaunay::IndexTriangle::indices_[3] |
|
protected |
The documentation for this class was generated from the following file: