Class Triangle
Defined in File Triangle.hpp
Class Documentation
-
class Triangle
Represents a triangle, includes all elements to ease the Delaunay triangulation calculation.
Public Functions
-
Triangle(const cNode &n0, const cNode &n1, const cNode &n2)
Construct a new Triangle object from 3 cNode(s).
- Parameters:
n0 – [in]
n1 – [in]
n2 – [in]
-
Triangle(const Edge &e, const cNode &n)
Construct a new Triangle object from an Edge and a Node.
- Parameters:
e – [in]
n – [in]
-
bool operator==(const Triangle &t) const
Comparison operator, two triangles will be equal if they have the same hash.
- Parameters:
t – [in]
-
bool containsNode(const cNode &n) const
Checks if the Triangle contains the Node n.
- Parameters:
n – [in]
-
bool containsEdge(const Edge &e) const
Checks if the Edge e belongs to the Triangle.
- Parameters:
e – [in]
-
bool circleContainsNode(const cNode &n) const
Checks if a Node is inside the Triangle’s circumcircle.
- Parameters:
n – [in]
Public Members
-
Triangle(const cNode &n0, const cNode &n1, const cNode &n2)