summaryrefslogtreecommitdiff
path: root/engine/src/Point.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engine/src/Point.cpp')
-rw-r--r--engine/src/Point.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/engine/src/Point.cpp b/engine/src/Point.cpp
index f02991c..e01de57 100644
--- a/engine/src/Point.cpp
+++ b/engine/src/Point.cpp
@@ -82,5 +82,19 @@ Point::subtract(const double _x, const double _y) const
}
+bool
+Point::operator==(const Point& other) const
+{
+ return x == other.x && y == other.y;
+}
+
+
+bool
+Point::operator!=(const Point& other) const
+{
+ return x != other.x || y != other.y;
+}
+
+
} // namespace engine
} // namespace kurator