#include <face.h>
Public Member Functions | |
Face (Edge *, bool=true) | |
~Face () | |
void | computeInternalValues () |
bool | collideAt (Coordinates) |
bool | circumcircleContainCoords (Coordinates) const |
bool | isVisible () const |
Edge * | getEdge () const |
Edge * | getEdge1 () const |
Edge * | getEdge2 () const |
Edge * | getEdge3 () const |
Vertex * | getP1 () const |
Vertex * | getP2 () const |
Vertex * | getP3 () const |
unsigned int | getID () const |
Coordinates | circumcenter () const |
float | circumcircleRadius () const |
void | setEdge (Edge *) |
void | setVisibility (bool v) |
Face object defined a geometric triangle, with 3 Vertex, 3 Edges, and a geometric centroid. Each Face have a unique ID.
Face::Face | ( | Edge * | e, |
bool | visible = true |
||
) |
Face::~Face | ( | ) |
Frees.
bool Face::circumcircleContainCoords | ( | Coordinates | p0 | ) | const |
p0 | Coordinates of tested point |
bool Face::collideAt | ( | Coordinates | c | ) |
c | tested Coordinates |
void Face::computeInternalValues | ( | ) |
Compute values that changed if Vertex are modified
Edge * Face::getEdge1 | ( | ) | const |
Edge * Face::getEdge2 | ( | ) | const |
Edge * Face::getEdge3 | ( | ) | const |
void Face::setEdge | ( | Edge * | e | ) |