diff options
Diffstat (limited to 'src/engine/graphics/vector2.cpp')
-rw-r--r-- | src/engine/graphics/vector2.cpp | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/engine/graphics/vector2.cpp b/src/engine/graphics/vector2.cpp deleted file mode 100644 index dfdf4bd..0000000 --- a/src/engine/graphics/vector2.cpp +++ /dev/null @@ -1,39 +0,0 @@ -#include "vector2.hpp" - -Vector2::Vector2(const IVector2Options &options) : _x(options.x), _y(options.y) {} - -unsigned int Vector2::x() const -{ - return _x; -} - -void Vector2::x(unsigned int x) -{ - _x = x; -} - -unsigned int Vector2::y() const -{ - return _y; -} - -void Vector2::y(unsigned int y) -{ - _y = y; -} - -const IVector2 &Vector2::operator+=(const IVector2 &vector2) -{ - _x += vector2.x(); - _y += vector2.y(); - - return *this; -} - -const IVector2 &Vector2::operator-=(const IVector2 &vector2) -{ - _x -= vector2.x(); - _y -= vector2.y(); - - return *this; -} |