Enki  1.9
Public Member Functions | List of all members

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

#include <Geometry.h>

Inheritance diagram for Enki::Polygone:

Public Member Functions

Segment getSegment (size_t i) const
 Return the i-th segment.
 
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 (const 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.
 

Detailed Description

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


The documentation for this struct was generated from the following file: