diff options
author | Giacom <giacomand@gmail.com> | 2019-04-07 22:40:56 +0100 |
---|---|---|
committer | Giacom <giacomand@gmail.com> | 2019-05-28 11:39:35 +0100 |
commit | c00427add34f505cff275ea33423f1053423d646 (patch) | |
tree | 9fef14ccadd219e7050de28394a53e72209268ce /core/math/vector3.h | |
parent | 252c841d7ff5d770e8d2819e4f7955363410744b (diff) | |
download | redot-engine-c00427add34f505cff275ea33423f1053423d646.tar.gz |
Added move_toward functions for float, Vector2 and Vector3
Diffstat (limited to 'core/math/vector3.h')
-rw-r--r-- | core/math/vector3.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/math/vector3.h b/core/math/vector3.h index 21fc09653f..6423147282 100644 --- a/core/math/vector3.h +++ b/core/math/vector3.h @@ -94,6 +94,7 @@ struct Vector3 { _FORCE_INLINE_ Vector3 slerp(const Vector3 &p_b, real_t p_t) const; Vector3 cubic_interpolate(const Vector3 &p_b, const Vector3 &p_pre_a, const Vector3 &p_post_b, real_t p_t) const; Vector3 cubic_interpolaten(const Vector3 &p_b, const Vector3 &p_pre_a, const Vector3 &p_post_b, real_t p_t) const; + Vector3 move_toward(const Vector3 &p_to, const real_t p_delta) const; _FORCE_INLINE_ Vector3 cross(const Vector3 &p_b) const; _FORCE_INLINE_ real_t dot(const Vector3 &p_b) const; |