diff options
author | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-02-17 23:24:59 +0100 |
---|---|---|
committer | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-03-04 18:17:10 +0100 |
commit | a497a5cb3e31f1d863ad70d80bc706474a29d8cc (patch) | |
tree | f0806737910e71a5957e76d29171fd1412285253 /core/math/basis.cpp | |
parent | 01dc5c5b58e93cb893c9c427419eb7838e73ec7d (diff) | |
download | redot-engine-a497a5cb3e31f1d863ad70d80bc706474a29d8cc.tar.gz |
[Core] Codestyle improvements to math types
Diffstat (limited to 'core/math/basis.cpp')
-rw-r--r-- | core/math/basis.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/basis.cpp b/core/math/basis.cpp index 5c31095960..3ebd13b9fe 100644 --- a/core/math/basis.cpp +++ b/core/math/basis.cpp @@ -907,7 +907,7 @@ void Basis::_set_diagonal(const Vector3 &p_diag) { rows[2][2] = p_diag.z; } -Basis Basis::lerp(const Basis &p_to, const real_t &p_weight) const { +Basis Basis::lerp(const Basis &p_to, real_t p_weight) const { Basis b; b.rows[0] = rows[0].lerp(p_to.rows[0], p_weight); b.rows[1] = rows[1].lerp(p_to.rows[1], p_weight); @@ -916,7 +916,7 @@ Basis Basis::lerp(const Basis &p_to, const real_t &p_weight) const { return b; } -Basis Basis::slerp(const Basis &p_to, const real_t &p_weight) const { +Basis Basis::slerp(const Basis &p_to, real_t p_weight) const { //consider scale Quaternion from(*this); Quaternion to(p_to); |