diff options
author | Silc Renew <tokage.it.lab@gmail.com> | 2022-07-29 04:55:10 +0900 |
---|---|---|
committer | Silc Renew <tokage.it.lab@gmail.com> | 2022-08-19 14:48:37 +0900 |
commit | dded7c72c1d3ceff45c7c5279d430e4622e32da9 (patch) | |
tree | b2529e3d03d1471238f708dad2a35f34ab4d9f21 /core/math/vector4.h | |
parent | 0ba1046355b689d33eeed13a2633b174d62ccff8 (diff) |
Make `cubic_interpolate()` consider key time in animation
Diffstat (limited to 'core/math/vector4.h')
-rw-r--r-- | core/math/vector4.h | 1 |
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; |