From 512ca74e35621591a24d66b9a1880c1ae99669ad Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sat, 30 Dec 2023 14:34:47 +0800 Subject: [PATCH] ... --- include/pocketpy/linalg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pocketpy/linalg.h b/include/pocketpy/linalg.h index 8df06071..fda0a3af 100644 --- a/include/pocketpy/linalg.h +++ b/include/pocketpy/linalg.h @@ -4,7 +4,7 @@ namespace pkpy{ -inline bool isclose(float a, float b){ return std::fabsf(a - b) <= NumberTraits<4>::kEpsilon; } +inline bool isclose(float a, float b){ return std::fabs(a - b) <= NumberTraits<4>::kEpsilon; } struct Vec2{ float x, y;