|
HighMap library (C++)
|
Wave sine (x, y) function class. More...
#include <functions.hpp>
Public Member Functions | |
| float | operator() (float x, float y, float ctrl_param=0.f) const |
| WaveSineFunction (glm::vec2 kw, float angle, float phase_shift, glm::vec2 center={0.5f, 0.5f}) | |
| Construct a new Wave Sine Function object. | |
| void | set_angle (float new_angle) |
| Set the angle. | |
Protected Attributes | |
| glm::vec2 | kw |
| Frequency scaling vector. | |
| float | angle |
| Overall rotation angle (in degrees). | |
| float | phase_shift |
| Phase shift (in radians). | |
| glm::vec2 | center |
| Primitive reference center. | |
Wave sine (x, y) function class.
This class models a wave sine function with specific noise wavenumbers, rotation angle, and phase shift. It extends the base Function class.
| hmap::WaveSineFunction::WaveSineFunction | ( | glm::vec2 | kw, |
| float | angle, | ||
| float | phase_shift, | ||
| glm::vec2 | center = {0.5f, 0.5f} ) |
Construct a new Wave Sine Function object.
| kw | Noise wavenumbers {kx, ky} for each direction, with respect to a unit domain. |
| angle | Overall rotation angle (in degrees). |
| phase_shift | Phase shift (in radians). |
| center | Primitive reference center. |
| float hmap::WaveSineFunction::operator() | ( | float | x, |
| float | y, | ||
| float | ctrl_param = 0.f ) const |
|
inline |
Set the angle.
| new_angle | New angle. |
|
protected |
Frequency scaling vector.
|
protected |
Overall rotation angle (in degrees).
|
protected |
Phase shift (in radians).
|
protected |
Primitive reference center.