Go to Overview over all GrAL packages.
Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Polygon2d Class Template Reference
[Geometric types]

Geometric polygon corresponding to geometric face. More...

#include <geometric-types.h>

Inheritance diagram for Polygon2d:

Inheritance graph
[legend]
List of all members.

Public Types

typedef geom::coord_type coord_type
typedef algebraic_primitives<
coord_type
algebra
typedef point_traits< coord_typept
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.


Detailed Description

template<class Face, class geom>
class Polygon2d< Face, geom >

Geometric polygon corresponding to geometric face.

Template parameters:
(same as for vertex_iterator_Polygon2d<Face,geom>)
See also:
vertex_iterator_Polygon2d<Face,geom> , Module Geometric types

Definition at line 114 of file geometric-types.h.


The documentation for this class was generated from the following file:
Copyright (c) Guntram Berti 1997-2002. See the GrAL Homepage for up-to-date information.

Generated at Tue Feb 26 16:06:04 2002 for GrAL Base by doxygen 1.2.11-20011104 written by Dimitri van Heesch, © 1997-2000