Go to the documentation of this file.
45 # pragma GCC system_header
62 template <
typename IntegerType>
63 inline IntegerType
gcd( IntegerType a, IntegerType b ) {
64 const IntegerType zero = (IntegerType)0;
82 template <
typename IntegerType >
83 inline IntegerType
lcm( IntegerType a, IntegerType b ) {
84 const IntegerType t =
gcd (a,b);
94 return std::numeric_limits<T>::epsilon();
101 return static_cast<T
>(3.14159265358979323846);
T getEpsilon()
Will return the smallest epsilon-value for the requested type.
Definition: assimp/MathFunctions.h:93
IntegerType lcm(IntegerType a, IntegerType b)
Will return the greatest common divisor.
Definition: assimp/MathFunctions.h:83
IntegerType gcd(IntegerType a, IntegerType b)
Will return the greatest common divisor.
Definition: assimp/MathFunctions.h:63
T PI()
Will return the constant PI for the requested type.
Definition: assimp/MathFunctions.h:100
Definition: ai_assert.h:50