aboutsummaryrefslogtreecommitdiff
path: root/include/Triangle2D.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/Triangle2D.hpp')
-rw-r--r--include/Triangle2D.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/Triangle2D.hpp b/include/Triangle2D.hpp
new file mode 100644
index 0000000..d5d76bd
--- /dev/null
+++ b/include/Triangle2D.hpp
@@ -0,0 +1,16 @@
+#pragma once
+
+#include "Vertex2D.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;
+ };
+}