30 #include <mc_rtc/logging.h> 47 inline double clamp(
double v,
double vMin,
double vMax)
95 inline double clamp(
double v,
double vMin,
double vMax,
const char * label)
99 LOG_WARNING(label <<
" clamped to " << vMax);
104 LOG_WARNING(label <<
" clamped to " << vMin);
124 inline void clampInPlace(
double & v,
double vMin,
double vMax,
const char * label)
128 LOG_WARNING(label <<
" clamped to " << vMax);
133 LOG_WARNING(label <<
" clamped to " << vMin);
double clamp(double v, double vMin, double vMax)
Clamp a value in a given interval.
void clampInPlace(double &v, double vMin, double vMax)
Clamp a value in a given interval.
Utility functions and classes.