FastLED 3.10.6
Loading...
Searching...
No Matches

◆ geti16Previous()

i16 fl::WaveSimulation2D_Real::geti16Previous ( fl::size x,
fl::size y ) const

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

248 {
249 if (x >= width || y >= height) {
250 FL_WARN("Out of range: %s, %s", x, y);
251 return 0;
252 }
253 const i16 *prev = (whichGrid == 0 ? grid2.data() : grid1.data());
254 return prev[(y + 1) * stride + (x + 1)];
255}
#define FL_WARN(...)
Definition log.h:440

References FL_WARN, grid1, grid2, height, stride, whichGrid, width, fl::x, and fl::y.

Referenced by ~WaveSimulation2D_Real().

+ Here is the caller graph for this function: