CARB_CLAMP
Defined in carb/Defines.h
- 
CARB_CLAMP(x, lo, hi)
- A macro the returns the largest of two values. - Warning - This macro will evaluate parameters more than once! Consider using - std::clampor an inline function instead.- Parameters
- x – The value to clamp. 
- lo – The lowest acceptable value. This will be returned if - x < lo.
- hi – The highest acceptable value. This will be returned if - x > hi.
 
- Returns
- loif- xis less than- lo;- hiif- xis greater than- hi;- xotherwise.