@brief Set wave amplitude at a specific grid position @param x X coordinate in grid space @param y Y coordinate in grid space @param value Wave amplitude (0.0 to 1.0) Use this to create a wave disturbance at a specific point. Value of 1.0 creates maximum amplitude wave that will propagate outward.
| 293 | /// Use this to create a wave disturbance at a specific point. |
| 294 | /// Value of 1.0 creates maximum amplitude wave that will propagate outward. |
| 295 | void setf(size_t x, size_t y, float value) { |
| 296 | // Set the value at the given coordinates in the wave simulation. |
| 297 | mWaveSim.setf(x, y, value); |
| 298 | } |
| 299 | |
| 300 | /// @brief Add wave amplitude to existing value at a position |
| 301 | /// @param x X coordinate in grid space |
no outgoing calls
no test coverage detected