BALL::Maths Namespace Reference


Functions

template<typename T >
abs (const T &t)
template<typename T >
frac (const T &t)
template<typename T >
max (const T &a, const T &b)
template<typename T >
max (const T &a, const T &b, const T &ct)
template<typename T >
min (const T &a, const T &b)
template<typename T >
min (const T &a, const T &b, const T &ct)
template<typename T >
round (const T &t)
template<typename T >
sgn (const T &t)
template<typename T >
bool isFinite (const T &t)
template<typename T >
bool isNan (const T &t)
template<typename T >
bool isInfinite (const T &t)
template<typename T >
bool isZero (const T &t)
template<typename T >
bool isNotZero (const T &t)
template<typename T1 , typename T2 >
bool isEqual (const T1 &a, const T2 &b)
template<typename T1 , typename T2 >
bool isNotEqual (const T1 &a, const T2 &b)
template<typename T1 , typename T2 >
bool isLess (const T1 &a, const T2 &b)
template<typename T1 , typename T2 >
bool isLessOrEqual (const T1 &a, const T2 &b)
template<typename T1 , typename T2 >
bool isGreaterOrEqual (const T1 &a, const T2 &b)
template<typename T1 , typename T2 >
bool isGreater (const T1 &a, const T2 &b)
template<typename T >
long floor (const T &t)
template<typename T >
long ceiling (const T &t)
template<typename T1 , typename T2 >
Index compare (const T1 &a, const T2 &b)
template<typename T >
bool isNear (const T &a, const T &b, const T &max_diff)
double rint (double x)
 

round to integral value in floating-point format