|
Enki
1.9
|
Polygone, which is a vector of points. Anti-clockwise, standard trigonometric orientation. More...
#include <Geometry.h>
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. | |
| Polygone & | operator<< (const Point &p) |
| Operator to add point inline. | |
Polygone, which is a vector of points. Anti-clockwise, standard trigonometric orientation.
1.8.11