aboutsummaryrefslogtreecommitdiff
path: root/include/HyperNeat/Utils/Point.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/HyperNeat/Utils/Point.hpp')
-rw-r--r--include/HyperNeat/Utils/Point.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/HyperNeat/Utils/Point.hpp b/include/HyperNeat/Utils/Point.hpp
new file mode 100644
index 0000000..ba51bac
--- /dev/null
+++ b/include/HyperNeat/Utils/Point.hpp
@@ -0,0 +1,21 @@
+#ifndef __HYPERNEAT_POINT_HPP__
+#define __HYPERNEAT_POINT_HPP__
+
+namespace hyperneat
+{
+ class Point
+ {
+ public:
+ Point() = default;
+ Point(double x, double y);
+
+ double distance(const Point& other) const;
+ bool operator== (const Point& other) const;
+ bool operator< (const Point& other) const;
+
+ double _x = 0.0;
+ double _y = 0.0;
+ };
+}
+
+#endif