aboutsummaryrefslogtreecommitdiffstats
path: root/labs/include/triangle.hpp
blob: 2d2cf880fec08b2d86e7edd1d73dcd9c9065bc88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef TRIANGLE_HPP
#define TRIANGLE_HPP

#include "point.hpp"

class Triangle {
public:
    Triangle() : p1(), p2(), p3() {}
    Triangle(Point p1, Point p2, Point p3);

    void set(Point p1, Point p2, Point p3);
    void set_point(unsigned point, Point p);

    double perimeter();
protected:
private:
    Point p1, p2, p3;
};

#endif