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

◆ getf()

float fl::WaveSimulation1D::getf ( size_t x) const

Definition at line 253 of file wave_simulation.cpp.

253 {
254 if (!has(x))
255 return 0.0f;
256 float sum = 0.0f;
257 uint8_t mult = MAX(1, mMultiplier);
258 for (uint32_t i = 0; i < mult; ++i) {
259 sum += mSim->getf(x * mult + i);
260 }
261 return sum / static_cast<float>(mult);
262}
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:82
fl::scoped_ptr< WaveSimulation1D_Real > mSim
bool has(size_t x) const
#define MAX(a, b)
Definition math_macros.h:11

References has(), MAX, mMultiplier, mSim, and x.

+ Here is the call graph for this function: