#include <delaunay_triangulation.h>
Public メソッド | |
Triangle (const int id, EdgePtr e0, EdgePtr e1, EdgePtr e2) | |
create triangle with index and edges | |
~Triangle () | |
remove this triangle from all edges. | |
int | id () const |
get the Id of this triangle | |
const Vertex * | vertex (std::size_t i) const |
get the raw pointer to the vertex that this triangle has | |
Edge * | edge (std::size_t i) const |
get the raw pointer to the edge that this triangle has | |
const Vector2D & | circumcenter () const |
get the circumcenter point of this triangle | |
const double & | circumradius () const |
get the radius of the circumcircle of this triangle | |
bool | contains (const Vector2D &pos) const |
check if *circumcircle* contains the specified point | |
bool | hasVertex (const Vertex *v) const |
check if this triangle has the specified vertex. | |
bool | hasEdge (const EdgePtr e) const |
check if this triangle has the specified edge. | |
const Vertex * | getVertexExclude (const Vertex *v1, const Vertex *v2) const |
get the pointer to the vertex that is different from the specified vertices. | |
const Vertex * | getVertexExclude (const Edge *edge) const |
get the pointer to the vertex that does not belong to the specified edge. | |
Edge * | getEdgeInclude (const Vertex *v1, const Vertex *v2) const |
get the pointer to the edge that has the specified vertices. | |
Edge * | getEdgeExclude (const Vertex *v) const |
get the pointer to the edge that does not have the specified vertex. |
rcsc::DelaunayTriangulation::Triangle::Triangle | ( | const int | id, | |
EdgePtr | e0, | |||
EdgePtr | e1, | |||
EdgePtr | e2 | |||
) |
create triangle with index and edges
id | Id number of this triangle | |
e0 | raw pointer to the first edge instance | |
e1 | raw pointer to the second edge instance | |
e2 | raw pointer to the third edge instance |
int rcsc::DelaunayTriangulation::Triangle::id | ( | ) | const [inline] |
get the Id of this triangle
const Vertex* rcsc::DelaunayTriangulation::Triangle::vertex | ( | std::size_t | i | ) | const [inline] |
get the raw pointer to the vertex that this triangle has
i | specifies array index |
Edge* rcsc::DelaunayTriangulation::Triangle::edge | ( | std::size_t | i | ) | const [inline] |
get the raw pointer to the edge that this triangle has
i | specifies array index |
const Vector2D& rcsc::DelaunayTriangulation::Triangle::circumcenter | ( | ) | const [inline] |
get the circumcenter point of this triangle
const double& rcsc::DelaunayTriangulation::Triangle::circumradius | ( | ) | const [inline] |
get the radius of the circumcircle of this triangle
bool rcsc::DelaunayTriangulation::Triangle::contains | ( | const Vector2D & | pos | ) | const [inline] |
check if *circumcircle* contains the specified point
pos | target point |
bool rcsc::DelaunayTriangulation::Triangle::hasVertex | ( | const Vertex * | v | ) | const [inline] |
check if this triangle has the specified vertex.
v | raw pointer to the vertex. |
bool rcsc::DelaunayTriangulation::Triangle::hasEdge | ( | const EdgePtr | e | ) | const [inline] |
check if this triangle has the specified edge.
e | raw pointer to the edge. |
const Vertex* rcsc::DelaunayTriangulation::Triangle::getVertexExclude | ( | const Vertex * | v1, | |
const Vertex * | v2 | |||
) | const [inline] |
get the pointer to the vertex that is different from the specified vertices.
v1 | first vertex | |
v2 | second vertex |
const Vertex* rcsc::DelaunayTriangulation::Triangle::getVertexExclude | ( | const Edge * | edge | ) | const [inline] |
get the pointer to the vertex that does not belong to the specified edge.
edge | target edge |
Edge* rcsc::DelaunayTriangulation::Triangle::getEdgeInclude | ( | const Vertex * | v1, | |
const Vertex * | v2 | |||
) | const [inline] |
get the pointer to the edge that has the specified vertices.
v1 | first vertex | |
v2 | second vertex |
get the pointer to the edge that does not have the specified vertex.
v | target vertex |