From f44142486d3110a0639bf6e95273d99020865872 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Sun, 4 Aug 2024 01:42:10 +0800 Subject: [PATCH] fixed CalculateAngle --- inc/hgl/math/Vector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/hgl/math/Vector.h b/inc/hgl/math/Vector.h index fdb3162..426a5a4 100644 --- a/inc/hgl/math/Vector.h +++ b/inc/hgl/math/Vector.h @@ -440,7 +440,7 @@ namespace hgl template inline float CalculateAngle(const T &a,const T &b) { - return std::acos(dotProduct/(ma*mb)); + return std::acos(CalculateRadian(a,b)); } }//namespace hgl #endif//HGL_ALGORITHM_MATH_VECTOR_INCLUDE