FastLED 3.9.15
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 186 of file math.h.

187 {
188 value = clamp(value, in_min, in_max);
189 return map_range<T, U>(value, in_min, in_max, out_min, out_max);
190}
constexpr int type_rank< T >::value
FASTLED_FORCE_INLINE U map_range(T value, T in_min, T in_max, U out_min, U out_max) FL_NOEXCEPT
Definition math.h:174
constexpr enable_if< is_fixed_point< T >::value, T >::type clamp(T x, T lo, T hi) FL_NOEXCEPT

References clamp(), FASTLED_FORCE_INLINE, FL_NOEXCEPT, 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: