mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 10:20:26 +01:00
Restrict the Eps precision change only to Pandora platform
This commit is contained in:
parent
9288c42268
commit
484d49434b
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user