summaryrefslogtreecommitdiff
path: root/src/helpers/Vector2D.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/helpers/Vector2D.hpp')
-rw-r--r--src/helpers/Vector2D.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/helpers/Vector2D.hpp b/src/helpers/Vector2D.hpp
index f2943b28..1178f734 100644
--- a/src/helpers/Vector2D.hpp
+++ b/src/helpers/Vector2D.hpp
@@ -42,10 +42,10 @@ class Vector2D {
Vector2D operator/(const Vector2D& a) const {
return Vector2D(this->x / a.x, this->y / a.y);
}
-
- double distance(const Vector2D& other);
- Vector2D clamp(const Vector2D& min, const Vector2D& max = Vector2D());
+ double distance(const Vector2D& other) const;
- Vector2D floor();
+ Vector2D clamp(const Vector2D& min, const Vector2D& max = Vector2D()) const;
+
+ Vector2D floor() const;
};