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