|
double | clamp (double value, double lower, double upper) |
|
void | clampInPlace (double &value, double lower, double upper) |
|
double | clampAndWarn (double value, double lower, double upper, const std::string &label) |
|
void | clampInPlaceAndWarn (double &value, double lower, double upper, const std::string &label) |
|
template<typename VectorT > |
VectorT | clamp (const VectorT &v, double lower, double upper) |
| Clamps each component of a vector in a given interval. The same lower and upper bounds will be used for each element of the vector. More...
|
|
template<typename VectorT > |
VectorT | clamp (const VectorT &v, const VectorT &lower, const VectorT &upper) |
| Clamps each component of a vector in a given interval with vector bounds. More...
|
|
template<typename VectorT > |
VectorT | clampAndWarn (const VectorT &v, const VectorT &lower, const VectorT &upper, const std::string &label) |
| Clamps each component of a vector in a given interval with vector bounds issuing a warning when bounds are hit. More...
|
|
template<typename VectorT > |
void | clampInPlace (VectorT &v, const VectorT &lower, const VectorT &upper) |
| Clamps each component of a vector in a given interval. More...
|
|
template<typename VectorT > |
void | clampInPlace (VectorT &v, double lower, double upper) |
| Clamps in-place each component of a vector in a given interval. More...
|
|
template<typename VectorT > |
void | clampInPlaceAndWarn (VectorT &vector, double lower, double upper, const std::string &label) |
| Clamps in-place each component of a vector in a given interval, issuing a warning when bounds are hit. More...
|
|
template<typename VectorT > |
void | clampInPlaceAndWarn (VectorT &vector, const VectorT &lower, const VectorT &upper, const std::string &label) |
| Clamps in-place each component of a vector in a given interval, issuing a warning when bounds are hit. More...
|
|