diff options
Diffstat (limited to 'src/helpers/Vector2D.hpp')
| -rw-r--r-- | src/helpers/Vector2D.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/helpers/Vector2D.hpp b/src/helpers/Vector2D.hpp index 9bc427e8..20bc032e 100644 --- a/src/helpers/Vector2D.hpp +++ b/src/helpers/Vector2D.hpp @@ -26,4 +26,15 @@ class Vector2D { Vector2D operator/(float a) { return Vector2D(this->x / a, this->y / a); } + + bool operator==(Vector2D& a) { + return a.x == x && a.y == y; + } + + bool operator!=(Vector2D& a) { + return a.x != x || a.y != y; + } + + + Vector2D floor(); };
\ No newline at end of file |
