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

◆ setSpeed()

void fl::WaveSimulation1D_Real::setSpeed ( float something)

Definition at line 72 of file wave_simulation_real.cpp.hpp.

72 {
73 // See constructor for clamp rationale.
74 mCourantSq = wave_detail::float_to_fixed(fl::clamp(something, 0.0f, 1.0f));
75}
constexpr enable_if< is_fixed_point< T >::value, T >::type clamp(T x, T lo, T hi) FL_NOEXCEPT

References fl::clamp(), fl::wave_detail::float_to_fixed(), and mCourantSq.

Referenced by ~WaveSimulation1D_Real().

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