]> git.localhorst.tv Git - l2e.git/blob - src/geometry/Point.h
9d4bd8599755fcd9fb84c17d4a208fd38a432ba9
[l2e.git] / src / geometry / Point.h
1 /*
2  * Point.h
3  *
4  *  Created on: Aug 5, 2012
5  *      Author: holy
6  */
7
8 #ifndef GEOMETRY_POINT_H_
9 #define GEOMETRY_POINT_H_
10
11 namespace geometry {
12
13 template<class T>
14 class Point {
15
16 public:
17         Point() : x(0), y(0) { }
18         Point(T x, T y) : x(x), y(y) { }
19
20 public:
21         T X() const { return x; }
22         T Y() const { return y; }
23
24 private:
25         T x, y;
26
27 };
28
29 }
30
31 #endif /* GEOMETRY_POINT_H_ */