aboutsummaryrefslogtreecommitdiff
path: root/include/Triangle.hpp
blob: 5caff0540c25866ec211f55f668c0d5e5238150a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include "Vertex.hpp"

namespace amalgine {
    class Triangle2D {
    public:
        Triangle2D(const Vertex2D &_p1, const Vertex2D &_p2, const Vertex2D &_p3) : p1(_p1), p2(_p2), p3(_p3) {}
        
        Vertex2D p1;
        Vertex2D p2;
        Vertex2D p3;
    };

    class Triangle3D {
    public:
        Triangle3D(const Vertex3D &_p1, const Vertex3D &_p2, const Vertex3D &_p3) : p1(_p1), p2(_p2), p3(_p3) {}
        
        Vertex3D p1;
        Vertex3D p2;
        Vertex3D p3;
    };
}