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

◆ geti16()

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

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

88 {
89 if (x >= length) {
90 FL_WARN("Out of range.");
91 return 0;
92 }
93 const i16 *curr = (whichGrid == 0) ? grid1.data() : grid2.data();
94 return curr[x + 1];
95}
#define FL_WARN(X)
Definition log.h:276

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

Referenced by geti8(), and getu8().

+ Here is the caller graph for this function: