From b5b6d3a8ec722719edd3f260e789315b87322b4c Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Thu, 20 May 2021 06:04:41 -0400 Subject: Make is_equal_approx have explicit float and double versions --- core/math/quat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/math/quat.cpp') 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 { -- cgit v1.2.3