Worley (x, y) function class.
More...
#include <functions.hpp>
|
| | WorleyDoubleFunction (glm::vec2 kw, std::uint32_t seed, float ratio, float k) |
| | Construct a new Worley Double Function object.
|
| |
| void | set_seed (std::uint32_t new_seed) |
| | Set the seed attribute.
|
| |
| | NoiseFunction () |
| | Default constructor. Initializes with default frequency scaling and seed.
|
| |
| | NoiseFunction (glm::vec2 kw) |
| | Constructor to initialize with specific frequency scaling.
|
| |
| | NoiseFunction (glm::vec2 kw, std::uint32_t seed) |
| | Constructor to initialize with specific frequency scaling and seed.
|
| |
| glm::vec2 | get_kw () const |
| | Get the frequency scaling vector.
|
| |
| std::uint32_t | get_seed () const |
| | Get the random seed.
|
| |
| virtual void | set_kw (glm::vec2 new_kw) |
| | Set a new frequency scaling vector.
|
| |
| | Function () |
| | Default constructor. Initializes the delegate function to a default that returns 0.
|
| |
| virtual | ~Function ()=default |
| | Virtual destructor to ensure proper cleanup in derived classes.
|
| |
| | Function (HMAP_FCT_XY_TYPE delegate) |
| | Constructor to initialize with a specific delegate function.
|
| |
| HMAP_FCT_XY_TYPE | get_delegate () const |
| | Get the current delegate function.
|
| |
| float | get_value (float x, float y, float ctrl_param) const |
| | Call the delegate function with given arguments.
|
| |
| void | set_delegate (HMAP_FCT_XY_TYPE new_delegate) |
| | Set a new delegate function.
|
| |
|
| float | ratio |
| | Amplitude ratio between each Worley noise.
|
| |
| float | k |
| | Transition smoothing parameter.
|
| |
|
| glm::vec2 | kw |
| | Frequency scaling vector.
|
| |
| std::uint32_t | seed |
| | Random seed for noise generation.
|
| |
Worley (x, y) function class.
◆ WorleyDoubleFunction()
| hmap::WorleyDoubleFunction::WorleyDoubleFunction |
( |
glm::vec2 |
kw, |
|
|
std::uint32_t |
seed, |
|
|
float |
ratio, |
|
|
float |
k |
|
) |
| |
Construct a new Worley Double Function object.
- Parameters
-
| kw | Noise wavenumbers {kx, ky} for each directions, with respect to a unit domain. |
| seed | Random seed number. |
| ratio | Amplitude ratio between each Worley noise. |
| k | Transition smoothing parameter. |
◆ set_seed()
| void hmap::WorleyDoubleFunction::set_seed |
( |
std::uint32_t |
new_seed | ) |
|
|
inlinevirtual |
◆ ratio
| float hmap::WorleyDoubleFunction::ratio |
Amplitude ratio between each Worley noise.
| float hmap::WorleyDoubleFunction::k |
Transition smoothing parameter.
The documentation for this class was generated from the following files: