diff --git a/include/zeus/Math.hpp b/include/zeus/Math.hpp index 3fdefd8..e128e81 100644 --- a/include/zeus/Math.hpp +++ b/include/zeus/Math.hpp @@ -183,11 +183,11 @@ template [[nodiscard]] bool close_enough(const CVector2f& a, const CVector2f& b, float epsilon = FLT_EPSILON); -[[nodiscard]] inline bool close_enough(float a, float b, double epsilon = FLT_EPSILON) { +[[nodiscard]] inline bool close_enough(float a, float b, double epsilon = DBL_EPSILON) { return std::fabs(a - b) < epsilon; } -[[nodiscard]] inline bool close_enough(double a, double b, double epsilon = FLT_EPSILON) { +[[nodiscard]] inline bool close_enough(double a, double b, double epsilon = DBL_EPSILON) { return std::fabs(a - b) < epsilon; } } // namespace zeus