FastLED 3.9.15
Loading...
Searching...
No Matches

◆ map_range()

template<typename T, typename U>
FASTLED_FORCE_INLINE U fl::map_range ( T value,
T in_min,
T in_max,
U out_min,
U out_max )

Definition at line 174 of file math.h.

175 {
176 if (map_range_detail::equals(value, in_min)) {
177 return out_min;
178 }
179 if (map_range_detail::equals(value, in_max)) {
180 return out_max;
181 }
182 return map_range_detail::map_range_math<T, U>::map(value, in_min, in_max, out_min, out_max);
183}
constexpr int type_rank< T >::value

References FASTLED_FORCE_INLINE, FL_NOEXCEPT, and type_rank< T >::value.

Referenced by fl::Corkscrew::at_splat_extrapolate(), drawRadialSpectrum(), drawSpectrumBars(), drawVUMeter(), drawWaveform(), fl::video::FrameTracker::get_interval_frames(), loop(), anonymous_namespace{xypaths.cpp}::make_path(), map_range_clamped(), fl::XYPathRenderer::rasterize(), and fl::iterator<, u8 >::setLoadFactor().

+ Here is the caller graph for this function: