fixed CalculateAngle
This commit is contained in:
parent
f8387f8b1f
commit
f44142486d
@ -440,7 +440,7 @@ namespace hgl
|
||||
template<typename T>
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user