aboutsummaryrefslogtreecommitdiff
path: root/src/engine/graphics/vector2.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-06 13:16:05 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:54 +0200
commit0e40bc7ce8c3b3be083002f88c3317d65f6570ad (patch)
tree2fcc470a0f1ce1d51ff26c53c8a9a890b3f31b3b /src/engine/graphics/vector2.hpp
parentf4d812a5b9131e65bb55db7211dc68fc453792df (diff)
refactor: make vector2 & bounds data classes
Diffstat (limited to 'src/engine/graphics/vector2.hpp')
-rw-r--r--src/engine/graphics/vector2.hpp48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/engine/graphics/vector2.hpp b/src/engine/graphics/vector2.hpp
deleted file mode 100644
index c8c6349..0000000
--- a/src/engine/graphics/vector2.hpp
+++ /dev/null
@@ -1,48 +0,0 @@
-#pragma once
-
-#include "interfaces/vector2.hpp"
-
-#include <memory>
-
-/**
- * A 2D Vector.
- */
-class Vector2 : public IVector2
-{
-public:
- /**
- * Creates a 2D vector.
- */
- explicit Vector2(const IVector2Options &options);
-
- /**
- * Returns the X coordinate.
- */
- [[nodiscard]] unsigned int x() const override;
-
- /**
- * Sets the X coordinate.
- *
- * @param x A new X coordinate
- */
- void x(unsigned int x) override;
-
- /**
- * Returns the Y coordinate.
- */
- [[nodiscard]] unsigned int y() const override;
-
- /**
- * Sets the Y coordinate.
- *
- * @param Y A new Y coordinate
- */
- void y(unsigned int y) override;
-
- const IVector2 &operator+=(const IVector2 &vector2) override;
- const IVector2 &operator-=(const IVector2 &vector2) override;
-
-private:
- unsigned int _x;
- unsigned int _y;
-};