#include <geometric-types.h>
Inheritance diagram for Polygon2d:
Public Types | |
typedef geom::coord_type | coord_type |
typedef algebraic_primitives< coord_type > | algebra |
typedef point_traits< coord_type > | pt |
typedef geom::grid_type | grid_type |
typedef grid_types< grid_type > | gt |
typedef gt::Vertex | Vtx |
typedef vertex_iterator_Polygon2d< Face, geom > | vertex_iterator |
Public Methods | |
Polygon2d (const Face &f, const geom &gg) | |
const geom & | TheGeometry () const |
vertex_iterator | FirstVertex () const |
vertex_iterator | EndVertex () const |
int | NumOfVertices () const |
coord_type | V (int i) const |
coord_type | Vertex (int i) const |
coord_type | barycenter () const |
mass center of the vertices. | |
coord_type | center () const |
center of inertia. | |
double | area () const |
Area calcultation works for general simple polygons. |
Definition at line 114 of file geometric-types.h.