Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. //
  2. // Created by Macbook Pro on 12/11/2019.
  3. //
  4.  
  5. #ifndef POINTANDTRIANGLE_TRIANGLE_H
  6. #define POINTANDTRIANGLE_TRIANGLE_H
  7.  
  8. #include "Point.h"
  9. #include <iostream>
  10. const double EPS = 0.000001;
  11.  
  12.  
  13. class Triangle{
  14.  
  15.  
  16. public:
  17. friend bool isEqualSquare(const Triangle &, const Triangle &);
  18. friend void move(Triangle &, int );
  19. Triangle();
  20. Triangle(const Point &a,const Point &b,const Point &c);
  21. Triangle(const Triangle & );
  22. ~Triangle() = default;
  23. void setA(const Point &);
  24. void setB(const Point &);
  25. void setC(const Point &);
  26. Point getA() const;
  27. Point getB() const;
  28. Point getC() const;
  29. void show() const;
  30. bool isTriangle() const;
  31. double getPerimetr() const;
  32.  
  33.  
  34. private:
  35. Point a_;
  36. Point b_;
  37. Point c_;
  38. };
  39.  
  40. #endif //POINTANDTRIANGLE_TRIANGLE_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement