summaryrefslogtreecommitdiffstats
path: root/Triangle.h
diff options
context:
space:
mode:
Diffstat (limited to 'Triangle.h')
-rw-r--r--Triangle.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/Triangle.h b/Triangle.h
index b0a7a2e..13311e8 100644
--- a/Triangle.h
+++ b/Triangle.h
@@ -3,6 +3,7 @@
#include "Vertex.h"
+#include "Line.h"
class Triangle {
private:
@@ -30,10 +31,12 @@ class Triangle {
Direction getDirection() const;
- double area() const;
- double perimeter() const;
+ float area() const;
+ float perimeter() const;
bool contains(const Vertex &v) const;
+ bool onEdge(const Vertex &v) const;
+ int intersectionCount(const Line &l) const;
};
#endif /*TRIANGLE_H_*/