Enki::Polygone Struct Reference
[Some software bricks extracted from the An support library.]

#include <Geometry.h>

List of all members.


Detailed Description

Polygone, which is a vector of points. Anti-clockwise, standard trigonometric orientation.


Public Member Functions

bool isPointInside (const Point &p) const
 Return true if p is inside this polygone.
bool getAxisAlignedBoundingBox (Point &bottomLeft, Point &topRight) const
 Get the axis aligned bounding box and return whether it exists.
void extendAxisAlignedBoundingBox (Point &bottomLeft, Point &topRight) const
 Extend an axis aligned bounding box with this object.
double getBoundingRadius () const
 Return the bounding radius of this polygon.
void translate (const Vector &delta)
 Translate of a specific distance.
void translate (const double &x, const double &y)
 Translate of a specific distance, overload for convenience.
void rotate (double angle)
 Rotate by a specific angle.
void flipX ()
 Flip coordinates on x.
void flipY ()
 Flip coordinates on y.
Polygoneoperator<< (const Point &p)
 Operator to add point inline.


The documentation for this struct was generated from the following file:
Generated on Sun Mar 1 03:10:09 2009 for Enki by  doxygen 1.5.1