summaryrefslogtreecommitdiff
path: root/src/helpers/Vector2D.hpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2023-01-29 15:58:36 +0000
committervaxerski <vaxry@vaxry.net>2023-01-29 15:58:36 +0000
commitef12120270c6a16a7680a20ded3899140eee48d0 (patch)
tree138e32f95c6ace78bca6929228707f4ad214f1d6 /src/helpers/Vector2D.hpp
parent3d83a0bc5f537b8909da1df1f0ec67809067959b (diff)
fixup LS scaling impl
Diffstat (limited to 'src/helpers/Vector2D.hpp')
-rw-r--r--src/helpers/Vector2D.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/helpers/Vector2D.hpp b/src/helpers/Vector2D.hpp
index f2f47e6b..f38e6a8d 100644
--- a/src/helpers/Vector2D.hpp
+++ b/src/helpers/Vector2D.hpp
@@ -39,6 +39,10 @@ class Vector2D {
return Vector2D(this->x * a.x, this->y * a.y);
}
+ Vector2D operator/(const Vector2D& a) const {
+ return Vector2D(this->x / a.x, this->y / a.y);
+ }
+
Vector2D clamp(const Vector2D& min, const Vector2D& max = Vector2D());
Vector2D floor();