clamp.h File Reference
#include <mc_rtc/logging.h>

Go to the source code of this file.

Namespaces

 utils
 Utility functions and classes.
 

Functions

double utils::clamp (double v, double vMin, double vMax)
 Clamp a value in a given interval. More...
 
void utils::clampInPlace (double &v, double vMin, double vMax)
 Clamp a value in a given interval. More...
 
double utils::clamp (double v, double vMin, double vMax, const char *label)
 Clamp a value in a given interval, issuing a warning when bounds are hit. More...
 
void utils::clampInPlace (double &v, double vMin, double vMax, const char *label)
 Clamp a value in a given interval, issuing a warning when bounds are hit. More...