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

◆ getf()

float fl::WaveSimulation2D_Real::getf ( 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: %s, %s", x, y);
233 return 0.0f;
234 }
235 const i16 *curr = (whichGrid == 0 ? grid1.data() : grid2.data());
236 return wave_detail::fixed_to_float(curr[(y + 1) * stride + (x + 1)]);
237}
#define FL_WARN(...)
Definition log.h:440

References fl::wave_detail::fixed_to_float(), FL_WARN, grid1, grid2, height, stride, whichGrid, width, fl::x, and fl::y.

Referenced by ~WaveSimulation2D_Real().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: