Loading...
Searching...
No Matches
common.h File Reference
`#include <BALL/CONFIG/config.h>`
`#include <cmath>`
`#include <BALL/COMMON/constants.h>`
`#include <BALL/COMMON/global.h>`
`#include <BALL/COMMON/macros.h>`

Go to the source code of this file.

## Namespaces

namespace | BALL
namespace | BALL::Maths

## Functions

template<typename T>
T | BALL::Maths::abs (const T &t)
template<typename T>
T | BALL::Maths::frac (const T &t)
template<typename T>
T | BALL::Maths::max (const T &a, const T &b)
template<typename T>
T | BALL::Maths::max (const T &a, const T &b, const T &ct)
template<typename T>
T | BALL::Maths::min (const T &a, const T &b)
template<typename T>
T | BALL::Maths::min (const T &a, const T &b, const T &ct)
template<typename T>
T | BALL::Maths::round (const T &t)
template<typename T>
T | BALL::Maths::sgn (const T &t)
template<typename T>
bool | BALL::Maths::isFinite (const T &t)
template<typename T>
bool | BALL::Maths::isNan (const T &t)
template<typename T>
bool | BALL::Maths::isInfinite (const T &t)
template<typename T>
bool | BALL::Maths::isZero (const T &t)
template<typename T>
bool | BALL::Maths::isNotZero (const T &t)
template<typename T1, typename T2>
bool | BALL::Maths::isEqual (const T1 &a, const T2 &b)
template<typename T1, typename T2>
bool | BALL::Maths::isNotEqual (const T1 &a, const T2 &b)
template<typename T1, typename T2>
bool | BALL::Maths::isLess (const T1 &a, const T2 &b)
template<typename T1, typename T2>
bool | BALL::Maths::isLessOrEqual (const T1 &a, const T2 &b)
template<typename T1, typename T2>
bool | BALL::Maths::isGreaterOrEqual (const T1 &a, const T2 &b)
template<typename T1, typename T2>
bool | BALL::Maths::isGreater (const T1 &a, const T2 &b)
template<typename T>
long | BALL::Maths::floor (const T &t)
template<typename T>
long | BALL::Maths::ceiling (const T &t)
template<typename T1, typename T2>
Index | BALL::Maths::compare (const T1 &a, const T2 &b)
template<typename T>
bool | BALL::Maths::isNear (const T &a, const T &b, const T &max_diff)
double | BALL::Maths::rint (double x)
| round to integral value in floating-point format