Removed toDegree arg from VectorI::AngleBetween

Former-commit-id: 6b5e141e7c291dadedbfd237f5f22615ce5dcfee
This commit is contained in:
Lynix
2014-07-10 10:03:35 +02:00
parent 0e791ebb19
commit 2479588811
4 changed files with 11 additions and 18 deletions

View File

@@ -55,12 +55,9 @@ inline unsigned int NzVector2<unsigned int>::AbsDotProduct(const NzVector2<unsig
}
template<typename T>
T NzVector2<T>::AngleBetween(const NzVector2& vec, bool toDegree) const
T NzVector2<T>::AngleBetween(const NzVector2& vec) const
{
if (toDegree)
return NzRadianToDegree(std::atan2(vec.y, vec.x) - std::atan2(y, x));
else
return std::atan2(vec.y, vec.x) - std::atan2(y, x);
return NzRadians(std::atan2(vec.y, vec.x) - std::atan2(y, x));
}
template<typename T>