FastLED 3.10.8
Loading...
Searching...
No Matches

◆ map_range_clamped()

template<typename T, typename U>
FASTLED_FORCE_INLINE U fl::map_range_clamped ( T value,
T in_min,
T in_max,
U out_min,
U out_max )
Examples
ElPanelReactive.ino.

Definition at line 194 of file math.h.

195 {
196 value = clamp(value, in_min, in_max);
197 return map_range<T, U>(value, in_min, in_max, out_min, out_max);
198}
constexpr int type_rank< T >::value
constexpr enable_if< is_fixed_point< T >::value, T >::type clamp(T x, T lo, T hi) FL_NO_EXCEPT
FASTLED_FORCE_INLINE U map_range(T value, T in_min, T in_max, U out_min, U out_max) FL_NO_EXCEPT
Definition math.h:182

References clamp(), FASTLED_FORCE_INLINE, FL_NO_EXCEPT, map_range(), and type_rank< T >::value.

Referenced by rescaleNoiseValue16(), and setup().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: