From ef12120270c6a16a7680a20ded3899140eee48d0 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Sun, 29 Jan 2023 15:58:36 +0000 Subject: fixup LS scaling impl --- src/helpers/Vector2D.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/helpers/Vector2D.hpp') 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(); -- cgit v1.2.3