Maths
More...Functions | |
template<typename T> | |
T | Maths::abs (const T &t) throw () |
Return the absolute value of a number. | |
template<typename T> | |
T | Maths::frac (const T &t) throw () |
Return the fraction of a number. | |
template<typename T> | |
T | Maths::max (const T &a, const T &b) throw () |
Return the greater of two numbers. | |
template<typename T> | |
T | Maths::max (const T &a, const T &b, const T &ct) throw () |
Return the greatest of three numbers. | |
template<typename T> | |
T | Maths::min (const T &a, const T &b) throw () |
Return the smallest of two numbers. | |
template<typename T> | |
T | Maths::min (const T &a, const T &b, const T &ct) throw () |
Return the smallest of three numbers. | |
template<typename T> | |
T | Maths::round (const T &t) throw () |
Round a number and return the result. | |
template<typename T> | |
T | Maths::sgn (const T &t) throw () |
Return the sign of a number. | |
template<typename T> | |
bool | Maths::isFinite (const T &t) throw () |
Test whether a number is finite. | |
template<typename T> | |
bool | Maths::isNan (const T &t) throw () |
Test whether a value is not a number. | |
template<typename T> | |
bool | Maths::isInfinite (const T &t) throw () |
Test whether a number is infinite. | |
template<typename T> | |
bool | Maths::isZero (const T &t) throw () |
Test whether a number is zero. | |
template<typename T> | |
bool | Maths::isNotZero (const T &t) throw () |
Test whether a number is not zero. | |
template<typename T1, typename T2> | |
bool | Maths::isEqual (const T1 &a, const T2 &b) throw () |
Test whether a number is equal to another. | |
template<typename T1, typename T2> | |
bool | Maths::isNotEqual (const T1 &a, const T2 &b) throw () |
Test whether a number is not equal to another. | |
template<typename T1, typename T2> | |
bool | Maths::isLess (const T1 &a, const T2 &b) throw () |
Test whether a number is less compared to another. | |
template<typename T1, typename T2> | |
bool | Maths::isLessOrEqual (const T1 &a, const T2 &b) throw () |
Test whether a number is less or equal compared to another. | |
template<typename T1, typename T2> | |
bool | Maths::isGreaterOrEqual (const T1 &a, const T2 &b) throw () |
Test whether a number is greater or equal compared to another. | |
template<typename T1, typename T2> | |
bool | Maths::isGreater (const T1 &a, const T2 &b) throw () |
Test whether a number is greater compared to another. | |
template<typename T> | |
long | Maths::floor (const T &t) throw () |
Return the floor of a number. | |
template<typename T> | |
long | Maths::ceiling (const T &t) throw () |
Return the ceiling of a number. | |
template<typename T1, typename T2> | |
Index | Maths::compare (const T1 &a, const T2 &b) throw () |
Compare two numbers to each other. | |
template<typename T> | |
bool | Maths::isNear (const T &a, const T &b, const T &max_diff) throw () |
Test whether two numbers are close to each other. | |
double | Maths::rint (double x) |
round to integral value in floating-point format |
Maths
|
Return the absolute value of a number.
|
|
Return the ceiling of a number.
|
|
Compare two numbers to each other.
|
|
Return the floor of a number.
|
|
Return the fraction of a number.
|
|
Test whether a number is equal to another.
|
|
Test whether a number is finite.
|
|
Test whether a number is greater compared to another.
|
|
Test whether a number is greater or equal compared to another.
|
|
Test whether a number is infinite.
|
|
Test whether a number is less compared to another.
|
|
Test whether a number is less or equal compared to another.
|
|
Test whether a value is not a number.
|
|
Test whether two numbers are close to each other.
|
|
Test whether a number is not equal to another.
|
|
Test whether a number is not zero.
|
|
Test whether a number is zero.
|
|
Return the greatest of three numbers.
|
|
Return the greater of two numbers.
|
|
Return the smallest of three numbers.
|
|
Return the smallest of two numbers.
|
|
Round a number and return the result.
|
|
Return the sign of a number.
|