Dragonfly 4.20
A text-based game engine
|
Public Member Functions | |
Circle (Vector init_center, float init_radius) | |
Circle () | |
void | setCenter (Vector new_center) |
Vector | getCenter () const |
void | setRadius (float new_radius) |
float | getRadius () const |
std::string | toString () const |
Private Attributes | |
Vector | m_center |
float | m_radius |
df::Circle::Circle | ( | Vector | init_center, |
float | init_radius | ||
) |
Create circle at center with radius r.
df::Circle::Circle | ( | ) |
Default circle segment is at (0,0) with radius 0.
Vector df::Circle::getCenter | ( | ) | const |
Get center.
float df::Circle::getRadius | ( | ) | const |
Get radius.
void df::Circle::setCenter | ( | Vector | new_center | ) |
Set center.
void df::Circle::setRadius | ( | float | new_radius | ) |
Set radius.
std::string df::Circle::toString | ( | ) | const |
Return attributes as string.
|
private |
Circle raduis.