diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2024-03-29 16:44:12 -0700 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2024-03-29 16:44:12 -0700 |
commit | 158fcf107c669796faf63e61b74d382ab2769273 (patch) | |
tree | 27b2baedfee5643882282192a8b397e56501817d /core/math/basis.cpp | |
parent | 29b3d9e9e538f0aa8effc8ad8bf19a2915292a89 (diff) | |
download | redot-engine-158fcf107c669796faf63e61b74d382ab2769273.tar.gz |
Fix some uses of float and real_t in core/math
Diffstat (limited to 'core/math/basis.cpp')
-rw-r--r-- | core/math/basis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/basis.cpp b/core/math/basis.cpp index 3ebd13b9fe..84ac878172 100644 --- a/core/math/basis.cpp +++ b/core/math/basis.cpp @@ -278,7 +278,7 @@ Basis Basis::scaled_orthogonal(const Vector3 &p_scale) const { return m; } -float Basis::get_uniform_scale() const { +real_t Basis::get_uniform_scale() const { return (rows[0].length() + rows[1].length() + rows[2].length()) / 3.0f; } |