16 #ifndef BITS_MATH_UTILS_H 
   17 #define BITS_MATH_UTILS_H 
   41                      const T& tol = static_cast<T>(1e-6));
 
   45                      const T& maxRelError = static_cast<T>(1e-5),
 
   46                      const T& maxAbsError = std::numeric_limits<T>::epsilon());
 
   50                     typename __impl::TypeTraits<T>::IntegralType_t maxDistInts = 10,
 
   54 T 
clamped(
const T& v, 
const T& min, 
const T& max);
 
   90 #endif // BITS_MATH_UTILS_H 
double degreeToRadian(const T &angle)
 
bool isNegative(const T &v)
 
T clamped(const T &v, const T &min, const T &max)
 
bool isPositive(const T &v)
 
bool equalByIntDiff(const T &a, const T &b, typename __impl::TypeTraits< T >::IntegralType_t maxDistInts=10, ComparisonCheckFlags checkFlags=NoCheck)
 
bool equalByRelError(const T &a, const T &b, const T &maxRelError=static_cast< T >(1e-5), const T &maxAbsError=std::numeric_limits< T >::epsilon())
 
bool equalByAbsError(const T &a, const T &b, const T &tol=static_cast< T >(1e-6))
 
double radianToDegree(const T &angle)
 
ComparisonCheckFlags
Definition: utils.h:28