summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/Vector2.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/core/Vector2.cpp b/src/core/Vector2.cpp
index 2da6f47..44dc001 100644
--- a/src/core/Vector2.cpp
+++ b/src/core/Vector2.cpp
@@ -54,12 +54,6 @@ Vector2 Vector2::cubic_interpolate(const Vector2 &p_b, const Vector2 &p_pre_a, c
return out;
}
-Vector2 Vector2::snapped(const Vector2 &p_by) const {
- return Vector2(
- p_by.x != 0 ? ::floor(x / p_by.x + 0.5) * p_by.x : x,
- p_by.y != 0 ? ::floor(y / p_by.y + 0.5) * p_by.y : y);
-}
-
Vector2::operator String() const {
return String::num(x) + ", " + String::num(y);
}