Circle2D.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002  *  Circle2D.h
00003  *
00004  *  (C) 2008 AG Aktives Sehen <agas@uni-koblenz.de>
00005  *           Universitaet Koblenz-Landau
00006  *
00007  * $Id :$
00008  *******************************************************************************/
00009 
00010 #ifndef Circle2D_H
00011 #define Circle2D_H
00012 
00013 #include "Point2D.h"
00014 #include <vector>
00015 
00020 class Circle2D {
00021 
00022   public:
00023 
00024     Circle2D();
00025 
00027     Circle2D( double x, double y, double radius );
00028     Circle2D( Point2D center, double radius );
00029 
00033     ~Circle2D();
00034 
00035     double x() const;
00036     double y() const;
00037     double radius() const;
00038     Point2D center() const;
00039 
00040     void setX(double x);
00041     void setY(double y);
00042     void setCenter( Point2D center );
00043     void setRadius( double radius );
00044 
00045     std::vector<Point2D> vertices( int steps=40 );
00046 
00047   protected:
00048 
00049     Point2D m_Center;
00050     double m_Radius;
00051 };
00052 
00053 #endif


robbie_architecture
Author(s): Viktor Seib
autogenerated on Mon Oct 6 2014 02:53:09