FastLED 3.10.8
Loading...
Searching...
No Matches

◆ geti16Previous()

i16 fl::WaveSimulation1D_Real::geti16Previous ( fl::size x) const

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

100 {
101 if (x >= length) {
102 FL_WARN("Out of range.");
103 return 0;
104 }
105 const i16 *prev = (whichGrid == 0) ? grid2.data() : grid1.data();
106 return prev[x + 1];
107}
#define FL_WARN(...)
Definition log.h:437

References fl::FL_NO_EXCEPT, FL_WARN, grid1, grid2, length, whichGrid, and fl::x.