9 #if !defined(MATHTOOLBOX_HPP) 10 #define MATHTOOLBOX_HPP 14 #include "../BasicDatatypes.hpp" 17 extern double hypot(
double x,
double y,
double z);
30 return std::abs(a - b) < 1E-11;
36 inline double sqr(
double val)
49 return std::abs(a - b) < 1E-6f;
62 template<
typename floatT>
73 template<
typename IntT>
79 return IntT (floatValue + (floatValue >= 0.0f ? + 0.5f : -0.5f));
87 template<
typename IntT>
93 return IntT (floatValue + (floatValue >= 0.0 ? + 0.5 : -0.5));