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

◆ geti16Previous()

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

Definition at line 78 of file wave_simulation_real.cpp.

78 {
79 if (x >= length) {
80 FASTLED_WARN("Out of range.");
81 return 0;
82 }
83 const i16 *prev = (whichGrid == 0) ? grid2.data() : grid1.data();
84 return prev[x + 1];
85}
int x
Definition simple.h:92
#define FASTLED_WARN
Definition warn.h:7

References FASTLED_WARN, grid1, grid2, length, whichGrid, and x.