Fixed some of the pull request code in order to merge it

Former-commit-id: d8a9734fc622cb57f98b3b6abd2579922d562aa0
This commit is contained in:
Lynix
2014-06-15 01:55:07 +02:00
committed by Gawaboumga
parent 55c205a5e5
commit dc3f3eb344
10 changed files with 56 additions and 48 deletions

View File

@@ -24,9 +24,9 @@ template<typename T>
NzFrustum<T>& NzFrustum<T>::Build(T angle, T ratio, T zNear, T zFar, const NzVector3<T>& eye, const NzVector3<T>& target, const NzVector3<T>& up)
{
#if NAZARA_MATH_ANGLE_RADIAN
angle *= F(0.5);
angle /= F(2.0);
#else
angle = NzDegreeToRadian(angle * F(0.5));
angle = NzDegreeToRadian(angle/F(2.0));
#endif
T tangent = std::tan(angle);