Tower Defence 2
geom2D.h
1 #ifndef TOWER_DEFENCE_2_GEOMETRY2D_H
2 #define TOWER_DEFENCE_2_GEOMETRY2D_H
3 
4 #include <vector>
5 
6 //TODO: namespace
7 
9 class Point {
10 public:
11  Point(double xvalue, double yvalue);
12  double x, y;
13 };
14 
16 typedef std::vector<Point> LineString;
17 
19 double distance(Point &p1, Point &p2);
20 
22 double length(LineString &ls);
23 
24 
25 #endif //TOWER_DEFENCE_2_GEOMETRY2D_H
2-Dimensional point.
Definition: geom2D.h:9