From cf51ab71a25cbb60ebcf13edd4b7413c23264128 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 17 Mar 2022 15:53:45 +0100 Subject: input basics --- src/helpers/Vector2D.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/helpers/Vector2D.cpp') diff --git a/src/helpers/Vector2D.cpp b/src/helpers/Vector2D.cpp index 33b12e7c..acaace13 100644 --- a/src/helpers/Vector2D.cpp +++ b/src/helpers/Vector2D.cpp @@ -16,4 +16,8 @@ double Vector2D::normalize() { y /= max; return max; +} + +Vector2D Vector2D::floor() { + return Vector2D((int)x, (int)y); } \ No newline at end of file -- cgit v1.2.3