Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 13 / ShapeCollection / Triangle.h
diff options
context:
space:
mode:
1 files changed, 15 insertions, 0 deletions
-rw-r--r--Sem. 13/ShapeCollection/Triangle.h15
diff --git a/Sem. 13/ShapeCollection/Triangle.h b/Sem. 13/ShapeCollection/Triangle.h
new file mode 100644
index 0000000..39434e8
--- /dev/null
+++ b/Sem. 13/ShapeCollection/Triangle.h
@@ -0,0 +1,15 @@
+#pragma once
+
+#include "Shape.h"
+
+class Triangle : public Shape
+{
+
+public:
+ Triangle(int x1, int y1, int x2, int y2, int x3, int y3);
+ double getArea() const override;
+ double getPer() const override;
+ bool isPointIn(int x, int y) const override;
+ Shape* clone() const override;
+
+}; \ No newline at end of file