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

◆ geti16()

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

Definition at line 190 of file wave_simulation_real.cpp.

190 {
191 if (x >= width || y >= height) {
192 FASTLED_WARN("Out of range: " << x << ", " << y);
193 return 0;
194 }
195 const i16 *curr = (whichGrid == 0 ? grid1.data() : grid2.data());
196 return curr[(y + 1) * stride + (x + 1)];
197}
int y
Definition simple.h:93
int x
Definition simple.h:92
fl::vector< i16, fl::allocator_psram< i16 > > grid1
fl::vector< i16, fl::allocator_psram< i16 > > grid2
#define FASTLED_WARN
Definition warn.h:7

References FASTLED_WARN, grid1, grid2, height, stride, whichGrid, width, x, and y.

Referenced by geti8(), and getu8().

+ Here is the caller graph for this function: