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

◆ map_float()

FASTLED_FORCE_INLINE float fl::map_float ( float x,
float in_min,
float in_max,
float out_min,
float out_max )

Definition at line 90 of file engine_core.h.

91 {
92 float result =
93 (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
94 if (result < out_min)
95 result = out_min;
96 if (result > out_max)
97 result = out_max;
98 return result;
99}
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31

References FASTLED_FORCE_INLINE, and x.

Referenced by render_value().

+ Here is the caller graph for this function: