#include <Circle2D.h>
Public Member Functions | |
Point2D | center () const |
Circle2D () | |
Circle2D (double x, double y, double radius) | |
Circle2D (Point2D center, double radius) | |
double | radius () const |
void | setCenter (Point2D center) |
void | setRadius (double radius) |
void | setX (double x) |
void | setY (double y) |
std::vector< Point2D > | vertices (int steps=40) |
double | x () const |
double | y () const |
~Circle2D () | |
Protected Attributes | |
Point2D | m_Center |
double | m_Radius |
Definition at line 20 of file Circle2D.h.
Circle2D::Circle2D | ( | double | x, |
double | y, | ||
double | radius | ||
) |
Creates a new 2D Circle given by center and radius
Circle2D::Circle2D | ( | Point2D | center, |
double | radius | ||
) |
Destructor, does nothing.
Point2D Circle2D::center | ( | ) | const |
double Circle2D::radius | ( | ) | const |
void Circle2D::setCenter | ( | Point2D | center | ) |
void Circle2D::setRadius | ( | double | radius | ) |
void Circle2D::setX | ( | double | x | ) |
void Circle2D::setY | ( | double | y | ) |
std::vector<Point2D> Circle2D::vertices | ( | int | steps = 40 | ) |
double Circle2D::x | ( | ) | const |
double Circle2D::y | ( | ) | const |
Point2D Circle2D::m_Center [protected] |
Definition at line 49 of file Circle2D.h.
double Circle2D::m_Radius [protected] |
Definition at line 50 of file Circle2D.h.