aboutsummaryrefslogtreecommitdiff
path: root/src/vector2.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-02-13 19:55:53 +0100
committerHampusM <hampus@hampusmat.com>2022-02-13 19:55:53 +0100
commitb0c265ee3d94921f55266a679d3801a4d2b4505b (patch)
treeb489dcbafddafdb05b415e920e9a2ca8524158e6 /src/vector2.hpp
parent36ce8d5d2c9b3bb9588a2bc1d96ee2678c2b990c (diff)
refactor: move some components to a engine dir
Diffstat (limited to 'src/vector2.hpp')
-rw-r--r--src/vector2.hpp59
1 files changed, 0 insertions, 59 deletions
diff --git a/src/vector2.hpp b/src/vector2.hpp
deleted file mode 100644
index 3dc1db1..0000000
--- a/src/vector2.hpp
+++ /dev/null
@@ -1,59 +0,0 @@
-#pragma once
-
-#include <memory>
-
-/**
- * A 2D Vector.
- */
-class Vector2
-{
-public:
- /**
- * Creates a 2D vector.
- *
- * @param x A X coordinate
- * @param y A Y coordinate
- */
- Vector2(unsigned int x, unsigned int y);
-
- /**
- * Returns the X coordinate.
- */
- unsigned int x() const;
-
- /**
- * Sets the X coordinate.
- *
- * @param x A new X coordinate
- */
- void x(unsigned int x);
-
- /**
- * Returns the Y coordinate.
- */
- unsigned int y() const;
-
- /**
- * Sets the Y coordinate.
- *
- * @param Y A new Y coordinate
- */
- void y(unsigned int y);
-
- /**
- * Creates a copy of the 2D vector.
- *
- * @returns A identical 2D vector.
- */
- std::shared_ptr<Vector2> copy();
-
- Vector2 operator+(const Vector2 vector2);
- Vector2 operator-(const Vector2 vector2);
-
- Vector2 &operator+=(const Vector2 &vector2);
- Vector2 &operator-=(const Vector2 &vector2);
-
-private:
- unsigned int _x;
- unsigned int _y;
-};