summaryrefslogtreecommitdiffstats
path: root/core/math/vector2.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-06-27 23:25:33 +0200
committerGitHub <noreply@github.com>2022-06-27 23:25:33 +0200
commit25baa32db068af49cda1d79ea211c9df6c47a547 (patch)
treeb5e3f3da2b343a17e10156fcbb87de1b5ffa6c67 /core/math/vector2.cpp
parentc79aad0257fc0ce92248f1525cd4a8d19e761d62 (diff)
parent99ce0df3b1fedf2c83e90664bd426e71440f923c (diff)
downloadredot-engine-25baa32db068af49cda1d79ea211c9df6c47a547.tar.gz
Merge pull request #62458 from Geometror/interpolation-function-cleanup
Refactor Bezier interpolation functions
Diffstat (limited to 'core/math/vector2.cpp')
-rw-r--r--core/math/vector2.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/core/math/vector2.cpp b/core/math/vector2.cpp
index a27227905c..d9b5d55454 100644
--- a/core/math/vector2.cpp
+++ b/core/math/vector2.cpp
@@ -152,13 +152,6 @@ Vector2 Vector2::limit_length(const real_t p_len) const {
return v;
}
-Vector2 Vector2::cubic_interpolate(const Vector2 &p_b, const Vector2 &p_pre_a, const Vector2 &p_post_b, const real_t p_weight) const {
- Vector2 res = *this;
- res.x = Math::cubic_interpolate(res.x, p_b.x, p_pre_a.x, p_post_b.x, p_weight);
- res.y = Math::cubic_interpolate(res.y, p_b.y, p_pre_a.y, p_post_b.y, p_weight);
- return res;
-}
-
Vector2 Vector2::move_toward(const Vector2 &p_to, const real_t p_delta) const {
Vector2 v = *this;
Vector2 vd = p_to - v;