Restrict the Eps precision change only to Pandora platform

This commit is contained in:
ptitSeb 2016-04-17 09:45:01 +02:00
parent c32b7cc829
commit e1921174d4

View File

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