summaryrefslogtreecommitdiff
path: root/core/math/vector4.h
diff options
context:
space:
mode:
authorSilc Renew <tokage.it.lab@gmail.com>2022-07-29 04:55:10 +0900
committerSilc Renew <tokage.it.lab@gmail.com>2022-08-19 14:48:37 +0900
commitdded7c72c1d3ceff45c7c5279d430e4622e32da9 (patch)
treeb2529e3d03d1471238f708dad2a35f34ab4d9f21 /core/math/vector4.h
parent0ba1046355b689d33eeed13a2633b174d62ccff8 (diff)
Make `cubic_interpolate()` consider key time in animation
Diffstat (limited to 'core/math/vector4.h')
-rw-r--r--core/math/vector4.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/math/vector4.h b/core/math/vector4.h
index d26fe15941..17d0de18e1 100644
--- a/core/math/vector4.h
+++ b/core/math/vector4.h
@@ -89,6 +89,7 @@ struct _NO_DISCARD_ Vector4 {
Vector4 round() const;
Vector4 lerp(const Vector4 &p_to, const real_t p_weight) const;
Vector4 cubic_interpolate(const Vector4 &p_b, const Vector4 &p_pre_a, const Vector4 &p_post_b, const real_t p_weight) const;
+ Vector4 cubic_interpolate_in_time(const Vector4 &p_b, const Vector4 &p_pre_a, const Vector4 &p_post_b, const real_t p_weight, const real_t &p_b_t, const real_t &p_pre_a_t, const real_t &p_post_b_t) const;
Vector4 posmod(const real_t p_mod) const;
Vector4 posmodv(const Vector4 &p_modv) const;