navlib::Circle Class Reference

Circle shape. More...

#include <geometry.h>

Inheritance diagram for navlib::Circle:

navlib::Shape

List of all members.

Public Member Functions

 Circle (double x, double y, double radiusi, unsigned int ni=16)
virtual std::vector< Segmentclip (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< PointgetPoints () 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


Detailed Description

Circle shape.

Constructor & Destructor Documentation

Circle::Circle ( double  x,
double  y,
double  radiusi,
unsigned int  ni = 16 
)

Parameters:
x initial x-axis position
y initial y-axis position
radiusi radius
ni number of points to return when calling getPoints()

Referenced by getBoundingCircle().


The documentation for this class was generated from the following files:

Generated on Mon Nov 3 20:33:35 2008 for navlib by  doxygen 1.5.5