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

◆ geti16()

int16_t fl::WaveSimulation2D::geti16 ( size_t x,
size_t y ) const

Definition at line 71 of file wave_simulation.cpp.

71 {
72 if (!has(x, y))
73 return 0;
74 int32_t sum = 0;
75 for (uint32_t j = 0; j < multiplier; ++j) {
76 for (uint32_t i = 0; i < multiplier; ++i) {
77 sum += sim->geti16(x * multiplier + i, y * multiplier + j);
78 }
79 }
80 return static_cast<int16_t>(sum / (multiplier * multiplier));
81}
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:80
uint32_t y[NUM_LAYERS]
Definition Fire2023.ino:81
fl::scoped_ptr< WaveSimulation2D_Real > sim
bool has(size_t x, size_t y) const

References has(), multiplier, sim, x, and y.

Referenced by geti16All(), geti8(), and getu8().

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