Dragonfly  4.4
A text-based game engine
Public Member Functions | Private Attributes | List of all members
df::Circle Class Reference
Collaboration diagram for df::Circle:
Collaboration graph

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

Private Attributes

Vector m_center
float m_radius

Constructor & Destructor Documentation

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.

Member Function Documentation

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.

Member Data Documentation

Vector df::Circle::m_center

Circle middle.

float df::Circle::m_radius

Circle raduis.