diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-03-04 20:43:34 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-03-04 20:43:34 +0100 |
commit | f10feabec49755d737a14f3cdb1452e6c585c60f (patch) | |
tree | 47e5443c50fc3107efbb1b98600a471b6b1c525d /core/math/basis.cpp | |
parent | 4320d53a2bec49a06e46ca02af77e8c145fc49d6 (diff) | |
parent | a497a5cb3e31f1d863ad70d80bc706474a29d8cc (diff) | |
download | redot-engine-f10feabec49755d737a14f3cdb1452e6c585c60f.tar.gz |
Merge pull request #88467 from AThousandShips/math_improve
[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); |