From 6a21b387f52699840fc6245291bcc93a3a797a6a Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Mon, 4 Sep 2023 22:01:25 +0800 Subject: [PATCH] used lower function name in is_nearly_equal --- inc/hgl/math/Vector.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/hgl/math/Vector.h b/inc/hgl/math/Vector.h index 763b90e..a910572 100644 --- a/inc/hgl/math/Vector.h +++ b/inc/hgl/math/Vector.h @@ -247,17 +247,17 @@ namespace hgl result.y = start.y + (end.y - start.y)*pos; } - inline bool IsNearlyEqual(const float v1,const float v2,const float gap) + inline bool is_nearly_equal(const float v1,const float v2,const float gap) { return fabsf(v1-v2)<=gap; } - inline bool IsNearlyEqual(const Vector2f &v1,const Vector2f &v2,const float gap) + inline bool is_nearly_equal(const Vector2f &v1,const Vector2f &v2,const float gap) { return length_squared_2d(v1,v2)<=(gap*gap); } - inline bool IsNearlyEqual(const Vector3f &v1,const Vector3f &v2,const float gap) + inline bool is_nearly_equal(const Vector3f &v1,const Vector3f &v2,const float gap) { return length_squared(v1,v2)<=(gap*gap); }