Добавил:
serega_ovc
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:lab2 / star
.h#pragma once
#include "shape.h"
#include <vector>
class Star:public Shape{
public:
Star(const Point ¢er,const Color& color, double _r1, double _r2);
Star(const Star& star);
void Move(const Point& p);
void Turn(double angle);
void Scale(double scale);
double get_radius1() const;
double get_radius2() const;
friend std::ostream& operator<<(std::ostream& out,const Star& star);
protected:
std::vector<Point> tops1,tops2;
double radius1;
double radius2;
};