diff options
Diffstat (limited to 'Triangle.h')
-rw-r--r-- | Triangle.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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_*/ |