diff options
Diffstat (limited to 'src/engine/data/vector2.cpp')
-rw-r--r-- | src/engine/data/vector2.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/engine/data/vector2.cpp b/src/engine/data/vector2.cpp index 04cc42e..dba745f 100644 --- a/src/engine/data/vector2.cpp +++ b/src/engine/data/vector2.cpp @@ -2,8 +2,6 @@ #include "util/hash.hpp" -Vector2::Vector2(const Vector2Options &options) : _x(options.x), _y(options.y) {} - Vector2::Value Vector2::get_x() const noexcept { return _x; @@ -71,26 +69,6 @@ bool Vector2::operator==(const Vector2 &vector2) const noexcept return _x == vector2._x && _y == vector2._y; } -Vector2 Vector2::up() noexcept -{ - return Vector2({.x = 0, .y = -1}); -} - -Vector2 Vector2::down() noexcept -{ - return Vector2({.x = 0, .y = 1}); -} - -Vector2 Vector2::left() noexcept -{ - return Vector2({.x = -1, .y = 0}); -} - -Vector2 Vector2::right() noexcept -{ - return Vector2({.x = 1, .y = 0}); -} - std::size_t Vector2Hasher::operator()(const Vector2 &vector2) const noexcept { std::size_t result_hash = 0; |