Perlin 'half' (x, y) function class.
More...
#include <functions.hpp>
|
| float | operator() (float x, float y, float ctrl_param=0.f) const |
| | PerlinHalfFunction (glm::vec2 kw, std::uint32_t seed, float k) |
| | Construct a new Perlin 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.
|
| void | set_seed (std::uint32_t new_seed) |
| | Set a new random seed for noise generation.
|
| void | set_kw (glm::vec2 new_kw) |
| | Set a new frequency scaling vector.
|
|
| glm::vec2 | kw |
| | Frequency scaling vector.
|
| std::uint32_t | seed |
| | Random seed for noise generation.
|
Perlin 'half' (x, y) function class.
◆ PerlinHalfFunction()
| hmap::PerlinHalfFunction::PerlinHalfFunction |
( |
glm::vec2 | kw, |
|
|
std::uint32_t | seed, |
|
|
float | k ) |
Construct a new Perlin Function object.
- Parameters
-
| kw | Noise wavenumbers {kx, ky} for each directions, with respect to a unit domain. |
| seed | Random seed number. |
| k | Smoothing factor. |
◆ operator()()
| float hmap::PerlinHalfFunction::operator() |
( |
float | x, |
|
|
float | y, |
|
|
float | ctrl_param = 0.f ) const |
◆ set_seed()
| void hmap::PerlinHalfFunction::set_seed |
( |
std::uint32_t | new_seed | ) |
|
|
inline |
Set the seed attribute.
- Parameters
-
| float hmap::PerlinHalfFunction::k |
The documentation for this class was generated from the following files: