#include <geometry.h>

Public Member Functions | |
| Polygon (std::vector< Point > points) | |
| virtual std::vector< Segment > | clip (std::vector< Segment > segments) |
| Returns a list of line segments that reside within the boundary. | |
| virtual bool | contains (Point &p) const |
| Determines if the given point resides within this shape's boundary. | |
| virtual std::vector< Point > | getPoints () const |
| Returns a set of points that form the shape boundary. | |
| virtual Pose | getPose () const |
| Returns the shape's pose. | |
| virtual void | setPose (const Pose &pose) |
| Sets the shape's pose. | |
Protected Attributes | |
| Pose | _pose |
| pose of the shape | |
| Polygon::Polygon | ( | std::vector< Point > | points | ) |
| points | a list of points that define the boundary |
1.5.5