aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/Platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/Platform.h')
-rw-r--r--include/Platform.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/Platform.h b/include/Platform.h
index c1924eda5..7a621c65e 100644
--- a/include/Platform.h
+++ b/include/Platform.h
@@ -108,6 +108,18 @@ public:
return Point(static_cast<XYPOSITION>(x_), static_cast<XYPOSITION>(y_));
}
+ bool operator!=(Point other) const noexcept {
+ return (x != other.x) || (y != other.y);
+ }
+
+ Point operator+(Point other) const noexcept {
+ return Point(x + other.x, y + other.y);
+ }
+
+ Point operator-(Point other) const noexcept {
+ return Point(x - other.x, y - other.y);
+ }
+
// Other automatically defined methods (assignment, copy constructor, destructor) are fine
};