Path Tracer
Namespaces | Functions
assimp/MathFunctions.h File Reference

Implementation of math utility functions. More...

#include <limits>

Go to the source code of this file.

Namespaces

 Assimp
 

Functions

template<typename IntegerType >
IntegerType Assimp::Math::gcd (IntegerType a, IntegerType b)
 Will return the greatest common divisor. More...
 
template<typename IntegerType >
IntegerType Assimp::Math::lcm (IntegerType a, IntegerType b)
 Will return the greatest common divisor. More...
 
template<class T >
Assimp::Math::getEpsilon ()
 Will return the smallest epsilon-value for the requested type. More...
 
template<class T >
Assimp::Math::PI ()
 Will return the constant PI for the requested type. More...
 

Detailed Description

Implementation of math utility functions.

Function Documentation

◆ gcd()

template<typename IntegerType >
IntegerType Assimp::Math::gcd ( IntegerType  a,
IntegerType  b 
)
inline

Will return the greatest common divisor.

Parameters
a[in] Value a.
b[in] Value b.
Returns
The greatest common divisor.

◆ getEpsilon()

template<class T >
T Assimp::Math::getEpsilon ( )
inline

Will return the smallest epsilon-value for the requested type.

Returns
The numercical limit epsilon depending on its type.

◆ lcm()

template<typename IntegerType >
IntegerType Assimp::Math::lcm ( IntegerType  a,
IntegerType  b 
)
inline

Will return the greatest common divisor.

Parameters
a[in] Value a.
b[in] Value b.
Returns
The greatest common divisor.

◆ PI()

template<class T >
T Assimp::Math::PI ( )
inline

Will return the constant PI for the requested type.

Returns
Pi