#include <geometry.h>

Public Member Functions | |
| Circle (double x, double y, double radiusi, unsigned int ni=16) | |
| virtual std::vector< Segment > | clip (std::vector< Segment > segments) |
| Returns all line segments that reside inside this shape's boundary. | |
| virtual bool | contains (Point &p) const |
| Determines if the given point resides within this shape's boundary. | |
| virtual Circle | getBoundingCircle () |
| Returns the smallest circle that encloses the shape. | |
| 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 | |
| double | _theta |
| orientation | |
| unsigned int | _n |
| number of points | |
| Circle::Circle | ( | double | x, | |
| double | y, | |||
| double | radiusi, | |||
| unsigned int | ni = 16 | |||
| ) |
| x | initial x-axis position | |
| y | initial y-axis position | |
| radiusi | radius | |
| ni | number of points to return when calling getPoints() |
Referenced by getBoundingCircle().
1.5.5