#include <vertex.h>
Detailed Description
Vertex are Coordinates with a unique ID and that is linked to an Edge.
Constructor & Destructor Documentation
Vertex::Vertex |
( |
const float |
x = 0. , |
|
|
const float |
y = 0. , |
|
|
Edge * |
edge = NULL |
|
) |
| |
Creat a new Vertex.
- Parameters
-
x | coordinate |
y | coordinate |
edge | reference to an Edge that have this new Vertex for origin |
- Returns
- a new and well initialized Vertex
Creat a new Vertex.
- Parameters
-
- Returns
- a new and well initialized Vertex
Member Function Documentation
- Parameters
-
- Note
- if this have not trob in memory, nothing is done by that function.
-
trob is not modified
Reimplemented in VertexGroup.
Edge * Vertex::getEdge |
( |
| ) |
const |
std::list< VirtualVertex * > Vertex::getObjects |
( |
unsigned int |
nb = 0 | ) |
const |
Access to all VirtualVertexs of this instance.
- Parameters
-
nb | number of objects returned. If 0, default or greater than object count, all are returned. |
- Returns
- a std::list of VirtualVertex pointers
Reimplemented in VertexGroup.
void Vertex::giveVirtualVerticesTo |
( |
Vertex * |
v | ) |
|
- Parameters
-
- Returns
- true iff this have vv in objects list
Reimplemented in VertexGroup.
bool Vertex::isACorner |
( |
| ) |
const |
- Returns
- true iff this is referenced by triangulation and is one of the four corner vertice
Reimplemented in VertexGroup.
bool Vertex::isNeighbourOf |
( |
Vertex * |
v | ) |
const |
- Parameters
-
v | a Vertex return true iff an edge have for origin this and for destination v |
Reimplemented in VertexGroup.
void Vertex::setEdge |
( |
Edge * |
e | ) |
|
- Parameters
-
e | the reference to an Edge, the new Edge that have this Vertex for origin |
- Parameters
-
trob | a VirtualVertex that will be added in list of this |
ancient | the Vertex that have trob, and that will forget it, or NULLĀ (default value) |
- Note
- trob is modified by a call to setVertex(this)
Reimplemented in VertexGroup.
The documentation for this class was generated from the following files:
- delaunator/libdelaunator_src/vertex.h
- delaunator/libdelaunator_src/vertex.cpp