#include <triangle2.h>
Public Types | |
typedef Point2< ScalarType > | CoordType |
typedef SCALAR_TYPE | ScalarType |
typedef Triangle2< ScalarType > | TriangleType |
Public Member Functions | |
const CoordType & | cP0 (const int j) const |
const CoordType & | cP1 (const int j) const |
const CoordType & | cP2 (const int j) const |
bool | InterpolationParameters (const CoordType &bq, ScalarType &a, ScalarType &b, ScalarType &c) const |
const CoordType & | P (const int j) const |
CoordType & | P (const int j) |
Shortcut per accedere ai punti delle facce. | |
const CoordType & | P0 (const int j) const |
CoordType & | P0 (const int j) |
const CoordType & | P1 (const int j) const |
CoordType & | P1 (const int j) |
const CoordType & | P2 (const int j) const |
CoordType & | P2 (const int j) |
void | PointDistance (const CoordType &q, ScalarType &dist, CoordType &p) const |
return the distance to the point q and neighors point p | |
Triangle2 (const CoordType &p0, const CoordType &p1, const CoordType &p2) | |
Triangle2 () | |
Protected Attributes | |
Point2< ScalarType > | _v [3] |
Vector of vertex pointer incident in the face. |
Templated class for storing a generic triangle in a 2D space. Note the relation with the Face class of TriMesh complex, both classes provide the P(i) access functions to their points and therefore they share the algorithms on it (e.g. area, normal etc...)
Definition at line 43 of file triangle2.h.
typedef SCALAR_TYPE vcg::Triangle2< SCALAR_TYPE >::ScalarType |
Definition at line 46 of file triangle2.h.