Fix cubic_slerp

Co-authored-by: K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com>
Co-authored-by: Pasi Nuutinmaki <gnssstylist@sci.fi>
This commit is contained in:
Silc 'Tokage' Renew
2022-07-25 22:39:48 +09:00
parent 667cef39b4
commit e252d4e6fe
2 changed files with 44 additions and 16 deletions

View File

@@ -74,7 +74,7 @@ struct _NO_DISCARD_ Quaternion {
Quaternion cubic_slerp(const Quaternion &p_b, const Quaternion &p_pre_a, const Quaternion &p_post_b, const real_t &p_weight) const;
Vector3 get_axis() const;
float get_angle() const;
real_t get_angle() const;
_FORCE_INLINE_ void get_axis_angle(Vector3 &r_axis, real_t &r_angle) const {
r_angle = 2 * Math::acos(w);