Simple Application Framework
1
|
Basic mathematical functions and structures.
Go to the source code of this file.
Namespaces | |
namespace | Saf |
Global library namespace. | |
namespace | Saf::Math |
Mathematical functions and structures. | |
Functions | |
template<class T > | |
T | Saf::Math::Abs (T x) |
Calculate absolute value of a number. | |
template<class T > | |
T | Saf::Math::IntegerDivCeil (T dividend, T divisor) |
Integer division rounded up. | |
template<class T > | |
T | Saf::Math::Restrict (T x, T low, T high) |
Restrict the value of a number. | |
template<class T > | |
T | Saf::Math::Round (T v) |
Round number. | |
template<class T > | |
Int8 | Saf::Math::Sgn (T val) |
Sign function. |
Basic mathematical functions and structures.