|
User Documentation |
|
Centre for Vision, Speech & Signal Processing |
Comments:
The IntPolygon2dC class is a representation of a polygon in 2 dimensional
digital space. A polygon is the region of a plane bounded by
a finite collection of line segments forming a simple closed curve.
Parent Classes:
Typedefs:
- typedef LongIntT AreaT;
-
polygon area
Methods:
- IntPolygon2dC()
-
Empty polygon.
- IntPolygon2dC(const IntPolygon2dC & points)
-
Another access to the polygon.
- IntPolygon2dC(const Index2ListC & points)
-
Constructs a polygon from a list of points. The 'points' will
be shared by the polygon (as a big object).
- IntPolygon2dC(const DListC<EdgePtrC> & vertexes)
-
Construct a polygon from a list of vertexes.
- IntPolygon2dC(const DListC<EdgeCPtrC> & vertexes)
-
Construct a polygon from a list of vertexes.
Access to the object model
--------------------------
- const Index2ListC & List() const
-
Access to the constant list of vertexes.
Derived characteristics of the object
-------------------------------------
- AreaT Area2() const
-
Returns twice the signed area of this polygon.
Ref.: - O'Rourke,J.: Computatinal geometry in C;
Cambridge University Press, 1994, pp. 20-26
- IntRectangleTPC MinimumRectangle() const
-
Returns a minimum enclosing rectangle of this polygon. The polygon
must be convex and counter-clockwise oriented.
|
Programmer:Radek Marik, Documentation by CxxDoc: Tue Mar 20 10:48:08 2001
|