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

◆ geti16Previous()

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

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

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

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