Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // Created by Macbook Pro on 12/11/2019.
- //
- #ifndef POINTANDTRIANGLE_TRIANGLE_H
- #define POINTANDTRIANGLE_TRIANGLE_H
- #include "Point.h"
- #include <iostream>
- const double EPS = 0.000001;
- class Triangle{
- public:
- friend bool isEqualSquare(const Triangle &, const Triangle &);
- friend void move(Triangle &, int );
- Triangle();
- Triangle(const Point &a,const Point &b,const Point &c);
- Triangle(const Triangle & );
- ~Triangle() = default;
- void setA(const Point &);
- void setB(const Point &);
- void setC(const Point &);
- Point getA() const;
- Point getB() const;
- Point getC() const;
- void show() const;
- bool isTriangle() const;
- double getPerimetr() const;
- private:
- Point a_;
- Point b_;
- Point c_;
- };
- #endif //POINTANDTRIANGLE_TRIANGLE_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement