This repository has been archived on 2023-05-13. You can view files and clone it, but cannot push or open issues or pull requests.
mipt_cpp/term1/seminar02_encapsulation/0circle/circle.h

24 lines
459 B
C
Raw Normal View History

2023-02-25 19:34:24 +03:00
#include "point.h"
class Circle
{
private:
Point mCenter;
float mRadius;
public:
Circle(const Point& acenter, float aradius);
Circle();
Circle(const Circle& circle);
Point getCenter() const;
float getRadius() const;
void setCenter(const Point& p);
void setRadius(float radius);
float getArea() const;
float getDistance(const Point& p);
bool isColliding(const Circle& c) const;
void move(const Point& p);
};