Definition at line 86 of file wave_simulation.cpp.hpp.
86 {
88 return 0;
89 i32 sum = 0;
91 for (u32 j = 0; j < mult; ++j) {
92 for (u32 i = 0; i < mult; ++i) {
93 u32 xx =
x * mult + i;
94 u32 yy =
y * mult + j;
95 i32 pt =
mSim->geti16(xx, yy);
97
99 if (ch_pt != 0) {
100 sum += ch_pt;
101 } else {
102 sum += pt;
103 }
104 } else {
105 sum += pt;
106 }
107 }
108 }
109 i16 out = static_cast<i16>(sum / (mult * mult));
110 return out;
111}
fl::Grid< i16 > mChangeGrid
bool has(fl::size x, fl::size y) const
fl::unique_ptr< WaveSimulation2D_Real > mSim
constexpr common_type_t< T, U > max(T a, U b) FL_NO_EXCEPT
References has(), fl::max(), mChangeGrid, mMultiplier, mSim, mUseChangeGrid, fl::x, and fl::y.
Referenced by geti16All(), geti8(), and getu8().