diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2021-05-20 06:04:41 -0400 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2021-05-20 06:18:11 -0400 |
commit | b5b6d3a8ec722719edd3f260e789315b87322b4c (patch) | |
tree | 1172f709e85e0396f37bbbcabb7903ffa3b420ae /core/math/basis.cpp | |
parent | 42b6602f1d4b108cecb94b94c0d2b645acaebd4f (diff) | |
download | redot-engine-b5b6d3a8ec722719edd3f260e789315b87322b4c.tar.gz |
Make is_equal_approx have explicit float and double versions
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 50299902eb..037378b9d7 100644 --- a/core/math/basis.cpp +++ b/core/math/basis.cpp @@ -109,7 +109,7 @@ bool Basis::is_diagonal() const { } bool Basis::is_rotation() const { - return Math::is_equal_approx(determinant(), 1, UNIT_EPSILON) && is_orthogonal(); + return Math::is_equal_approx(determinant(), 1, (real_t)UNIT_EPSILON) && is_orthogonal(); } #ifdef MATH_CHECKS |