Function mppi::utils::clamp

Function Documentation

inline float mppi::utils::clamp(const float lower_bound, const float upper_bound, const float input)

Clamps the input between the given lower and upper bounds.

Parameters:
  • lower_bound – Lower bound.

  • upper_bound – Upper bound.

Returns:

Clamped output.