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/vector3.h | |
parent | 42b6602f1d4b108cecb94b94c0d2b645acaebd4f (diff) | |
download | redot-engine-b5b6d3a8ec722719edd3f260e789315b87322b4c.tar.gz |
Make is_equal_approx have explicit float and double versions
Diffstat (limited to 'core/math/vector3.h')
-rw-r--r-- | core/math/vector3.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/vector3.h b/core/math/vector3.h index b47c3cc916..adfc52566f 100644 --- a/core/math/vector3.h +++ b/core/math/vector3.h @@ -423,7 +423,7 @@ Vector3 Vector3::normalized() const { bool Vector3::is_normalized() const { // use length_squared() instead of length() to avoid sqrt(), makes it more stringent. - return Math::is_equal_approx(length_squared(), 1.0, UNIT_EPSILON); + return Math::is_equal_approx(length_squared(), 1, (real_t)UNIT_EPSILON); } Vector3 Vector3::inverse() const { |