FastLED 3.10.6
Loading...
Searching...
No Matches

◆ setSpeed()

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

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

214 {
215 // See constructor for clamp rationale.
216 mCourantSq = wave_detail::float_to_fixed(fl::clamp(something, 0.0f, 0.5f));
217}
constexpr enable_if< is_fixed_point< T >::value, T >::type clamp(T x, T lo, T hi) FL_NO_EXCEPT

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

Referenced by ~WaveSimulation2D_Real().

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