Fixposition SDK 0.0.0-heads/main-0-g7b59b93
Collection of c++ libraries and apps for use with Fixposition products
|
Math utilities. More...
Functions | |
template<typename T > | |
constexpr T | Clamp (const T val, const T min, const T max) |
Clamp value in range. | |
template<typename T > | |
constexpr T | DegToRad (T degrees) |
Convert degrees to radians. | |
template<typename T > | |
constexpr T | RadToDeg (T radians) |
Convert radians to degrees. | |
double | RoundToFracDigits (const double value, const int digits) |
Round to desired number of fractional digits (of precision) | |
Math utilities.
|
constexpr |
|
inlineconstexpr |
|
inlineconstexpr |
double fpsdk::common::math::RoundToFracDigits | ( | const double | value, |
const int | digits ) |
Round to desired number of fractional digits (of precision)
[in] | value | The value |
[in] | digits | Number of digits (0-12), param clamped to range |