Definition at line 142 of file wave_simulation.cpp.
142 {
144 return;
145
146
148
151
152 int dx = static_cast<int>(i) - rad;
153 int dy = static_cast<int>(j) - rad;
154
155 if (
ABS(dx) +
ABS(dy) > rad) {
156 continue;
157 }
160 if (
mSim->has(xx, yy)) {
162 if (pt == 0) {
163
164 pt = v16;
165 } else {
166 const bool sign_matches = (pt >= 0) == (v16 >= 0);
167 if (!sign_matches) {
168
169 pt = v16;
170 } else {
171
172
173 uint16_t abs_pt =
static_cast<uint16_t
>(
ABS(pt));
174 uint16_t abs_v16 =
static_cast<uint16_t
>(
ABS(v16));
175 if (abs_v16 > abs_pt) {
176 pt = v16;
177 }
178 }
179 }
180 }
181 }
182 }
183}
fl::Grid< int16_t > mChangeGrid
fl::scoped_ptr< WaveSimulation2D_Real > mSim
bool has(size_t x, size_t y) const
References ABS, has(), mChangeGrid, mMultiplier, mSim, x, and y.
Referenced by setf().