aboutsummaryrefslogtreecommitdiff
path: root/XY.h
diff options
context:
space:
mode:
Diffstat (limited to 'XY.h')
-rw-r--r--XY.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/XY.h b/XY.h
new file mode 100644
index 0000000..2aac824
--- /dev/null
+++ b/XY.h
@@ -0,0 +1,13 @@
+#pragma once
+
+struct XY {
+ int x = 0;
+ int y = 0;
+
+ XY operator + (const XY &) const;
+ XY operator - () const;
+ XY operator - (const XY &) const;
+ XY& operator += (const XY &);
+ XY& operator -= (const XY &);
+};
+