fixed CalculateAngle

This commit is contained in:
hyzboy 2024-08-04 01:42:10 +08:00
parent f8387f8b1f
commit f44142486d

View File

@ -440,7 +440,7 @@ namespace hgl
template<typename T> template<typename T>
inline float CalculateAngle(const T &a,const T &b) inline float CalculateAngle(const T &a,const T &b)
{ {
return std::acos(dotProduct/(ma*mb)); return std::acos(CalculateRadian(a,b));
} }
}//namespace hgl }//namespace hgl
#endif//HGL_ALGORITHM_MATH_VECTOR_INCLUDE #endif//HGL_ALGORITHM_MATH_VECTOR_INCLUDE