summaryrefslogtreecommitdiff
path: root/core/math/quat.cpp
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2021-05-20 06:04:41 -0400
committerAaron Franke <arnfranke@yahoo.com>2021-05-20 06:18:11 -0400
commitb5b6d3a8ec722719edd3f260e789315b87322b4c (patch)
tree1172f709e85e0396f37bbbcabb7903ffa3b420ae /core/math/quat.cpp
parent42b6602f1d4b108cecb94b94c0d2b645acaebd4f (diff)
Make is_equal_approx have explicit float and double versions
Diffstat (limited to 'core/math/quat.cpp')
-rw-r--r--core/math/quat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/quat.cpp b/core/math/quat.cpp
index 6f13e04027..3982a0b993 100644
--- a/core/math/quat.cpp
+++ b/core/math/quat.cpp
@@ -87,7 +87,7 @@ Quat Quat::normalized() const {
}
bool Quat::is_normalized() const {
- return Math::is_equal_approx(length_squared(), 1.0, UNIT_EPSILON); //use less epsilon
+ return Math::is_equal_approx(length_squared(), 1, (real_t)UNIT_EPSILON); //use less epsilon
}
Quat Quat::inverse() const {