navlib::Polygon Class Reference

Polygon shape. More...

#include <geometry.h>

Inheritance diagram for navlib::Polygon:

navlib::Shape

List of all members.

Public Member Functions

 Polygon (std::vector< Point > points)
virtual std::vector< Segmentclip (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< 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

Pose _pose
 pose of the shape


Detailed Description

Polygon shape.

Constructor & Destructor Documentation

Polygon::Polygon ( std::vector< Point points  ) 

Parameters:
points a list of points that define the boundary


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