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

◆ geti16()

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

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

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

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

Referenced by geti8(), and getu8().

+ Here is the caller graph for this function: