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

◆ geti16Previous()

int16_t fl::WaveSimulation1D::geti16Previous ( size_t x) const

Definition at line 218 of file wave_simulation.cpp.

218 {
219 if (!has(x))
220 return 0;
221 int32_t sum = 0;
222 for (uint32_t i = 0; i < multiplier; ++i) {
223 sum += sim->geti16Previous(x * multiplier + i);
224 }
225 return static_cast<int16_t>(sum / multiplier);
226}
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.

Referenced by geti16All().

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