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/seminar02_encapsulation/0circle/circle.h
2022-10-22 18:26:37 +03:00

23 lines
459 B
C++

#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);
};