summaryrefslogtreecommitdiff
path: root/src/helpers/Vector2D.hpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-02 22:17:17 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-02 22:17:17 +0200
commite81de827062958d94d6e2f1e0abc10d39b29e0c4 (patch)
tree80764d7b2b1e3777dbec125e9ebc02b5effd723c /src/helpers/Vector2D.hpp
parent9d6999345e202c785af0f6678986c251e02e4b32 (diff)
added Vector2D::clamp
Diffstat (limited to 'src/helpers/Vector2D.hpp')
-rw-r--r--src/helpers/Vector2D.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/helpers/Vector2D.hpp b/src/helpers/Vector2D.hpp
index 7288a088..7ca52a68 100644
--- a/src/helpers/Vector2D.hpp
+++ b/src/helpers/Vector2D.hpp
@@ -35,5 +35,7 @@ class Vector2D {
return a.x != x || a.y != y;
}
+ Vector2D clamp(const Vector2D& min, const Vector2D& max = Vector2D());
+
Vector2D floor();
}; \ No newline at end of file