summaryrefslogtreecommitdiff
path: root/src/helpers/Vector2D.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/helpers/Vector2D.cpp')
-rw-r--r--src/helpers/Vector2D.cpp4
1 files changed, 4 insertions, 0 deletions
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