summaryrefslogtreecommitdiff
path: root/engine/include
diff options
context:
space:
mode:
Diffstat (limited to 'engine/include')
-rw-r--r--engine/include/kurator/engine/Point.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/engine/include/kurator/engine/Point.h b/engine/include/kurator/engine/Point.h
new file mode 100644
index 0000000..0e9f0ab
--- /dev/null
+++ b/engine/include/kurator/engine/Point.h
@@ -0,0 +1,26 @@
+#pragma once
+
+
+namespace kurator
+{
+namespace engine
+{
+
+
+struct Point
+{
+ double x;
+ double y;
+ double magnitude() const;
+ double distance(const Point& other) const;
+ double angle() const;
+ Point rotate(double angle) const;
+ Point scale(double _scale) const;
+ Point normalized() const;
+ Point operator-(const Point& other) const;
+ Point operator+(const Point& other) const;
+};
+
+
+} // namespace engine
+} // namespace kurator