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

◆ geti16()

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

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

239 {
240 if (x >= width || y >= height) {
241 FL_WARN("Out of range: %s, %s", x, y);
242 return 0;
243 }
244 const i16 *curr = (whichGrid == 0 ? grid1.data() : grid2.data());
245 return curr[(y + 1) * stride + (x + 1)];
246}
#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(), geti8(), and getu8().

+ Here is the caller graph for this function: