OpenWalnut
1.4.0
|
A helper class that is used to store edges as pairs of vertex indices. More...
#include <WGeometryFunctions.h>
Public Member Functions | |
Edge (unsigned int i, unsigned int j) | |
Constructor that sorts the input indices. | |
bool | operator< (Edge const &e) const |
Compare two edges. | |
bool | operator== (Edge const &e) const |
Compare two edges for equality. |
A helper class that is used to store edges as pairs of vertex indices.
The indices are sorted.
Definition at line 42 of file WGeometryFunctions.h.
utility::Edge::Edge | ( | unsigned int | i, |
unsigned int | j | ||
) | [inline] |
Constructor that sorts the input indices.
i | the first index. |
j | The second index. |
Definition at line 51 of file WGeometryFunctions.h.
bool utility::Edge::operator< | ( | Edge const & | e | ) | const [inline] |
Compare two edges.
This operator defines a weak ordering on the edges.
e | The edge to compare to. |
Definition at line 62 of file WGeometryFunctions.h.
bool utility::Edge::operator== | ( | Edge const & | e | ) | const [inline] |
Compare two edges for equality.
e | The edge to compare to. |
Definition at line 73 of file WGeometryFunctions.h.