aboutsummaryrefslogtreecommitdiff
path: root/src/engine/data/vector2.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-07-01 16:01:04 +0200
committerHampusM <hampus@hampusmat.com>2022-07-01 16:01:04 +0200
commit7307815e99a79dac42f2a9c06b0fe6171ea11ba0 (patch)
treead41ee819dc87fc2653caf720fa7d1df30c0caeb /src/engine/data/vector2.hpp
parent2bff8c999edde11270ecaf6fbd2d24f54d0e360b (diff)
refactor: use ranges
Diffstat (limited to 'src/engine/data/vector2.hpp')
-rw-r--r--src/engine/data/vector2.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/engine/data/vector2.hpp b/src/engine/data/vector2.hpp
index 03c2562..da96e72 100644
--- a/src/engine/data/vector2.hpp
+++ b/src/engine/data/vector2.hpp
@@ -43,8 +43,13 @@ public:
auto operator*(const Vector2 &rhs) const noexcept -> Vector2;
auto operator==(const Vector2 &rhs) const noexcept -> bool;
+ auto operator!=(const Vector2 &rhs) const noexcept -> bool;
auto operator<(const Vector2 &rhs) const noexcept -> bool;
+ auto operator>(const Vector2 &rhs) const noexcept -> bool;
+
+ auto operator<=(const Vector2 &rhs) const noexcept -> bool;
+ auto operator>=(const Vector2 &rhs) const noexcept -> bool;
/**
* Returns Vector2({.x = 0, .y = 1})