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

◆ geti16()

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

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

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

+ Here is the caller graph for this function: