Restrict the Eps precision change only to Pandora platform

This commit is contained in:
ptitSeb 2016-04-17 09:45:01 +02:00
parent 90e408e02c
commit b6d54121a5

View File

@ -370,7 +370,11 @@ void Quaternion<Type>::FromEuler(const Vector<Type, 3> &a)
template<class Type>
Type Quaternion<Type>::EPS(Type orig) const
{
#ifdef PLATFORM_PANDORA
if ((orig <= 1e-4f) && (orig >= -1e-4f))
#else
if ((orig <= 10e-6f) && (orig >= -10e-6f))
#endif
return(0.0f);
return(orig);