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

◆ geti16Previous()

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

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

230 {
231 if (x >= width || y >= height) {
232 FL_WARN("Out of range: " << x << ", " << y);
233 return 0;
234 }
235 const i16 *prev = (whichGrid == 0 ? grid2.data() : grid1.data());
236 return prev[(y + 1) * stride + (x + 1)];
237}
fl::vector_psram< i16 > grid1
fl::vector_psram< i16 > grid2
#define FL_WARN(X)
Definition log.h:276

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: