]> git.localhorst.tv Git - l2e.git/blobdiff - src/geometry/Point.h
added Point class
[l2e.git] / src / geometry / Point.h
diff --git a/src/geometry/Point.h b/src/geometry/Point.h
new file mode 100644 (file)
index 0000000..9d4bd85
--- /dev/null
@@ -0,0 +1,31 @@
+/*
+ * Point.h
+ *
+ *  Created on: Aug 5, 2012
+ *      Author: holy
+ */
+
+#ifndef GEOMETRY_POINT_H_
+#define GEOMETRY_POINT_H_
+
+namespace geometry {
+
+template<class T>
+class Point {
+
+public:
+       Point() : x(0), y(0) { }
+       Point(T x, T y) : x(x), y(y) { }
+
+public:
+       T X() const { return x; }
+       T Y() const { return y; }
+
+private:
+       T x, y;
+
+};
+
+}
+
+#endif /* GEOMETRY_POINT_H_ */