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

◆ getf()

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

Definition at line 198 of file wave_simulation.cpp.

198 {
199 if (!has(x))
200 return 0.0f;
201 float sum = 0.0f;
202 for (uint32_t i = 0; i < multiplier; ++i) {
203 sum += sim->getf(x * multiplier + i);
204 }
205 return sum / static_cast<float>(multiplier);
206}
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:80
bool has(size_t x) const
fl::scoped_ptr< WaveSimulation1D_Real > sim

References has(), multiplier, sim, and x.

+ Here is the call graph for this function: