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

◆ geti16Previous()

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

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

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

References fl::FL_NO_EXCEPT, 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: