A class for generating noise functions.
More...
#include <functions.hpp>
|
| | 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.
|
A class for generating noise functions.
The NoiseFunction class provides an interface for generating noise-based functions. It inherits from the Function class and adds parameters for frequency scaling (kw) and a random seed (seed) to customize the noise generation.
◆ NoiseFunction() [1/3]
| hmap::NoiseFunction::NoiseFunction |
( |
| ) |
|
|
inline |
Default constructor. Initializes with default frequency scaling and seed.
◆ NoiseFunction() [2/3]
| hmap::NoiseFunction::NoiseFunction |
( |
glm::vec2 | kw | ) |
|
|
inline |
Constructor to initialize with specific frequency scaling.
- Parameters
-
| kw | Frequency scaling vector. |
◆ NoiseFunction() [3/3]
| hmap::NoiseFunction::NoiseFunction |
( |
glm::vec2 | kw, |
|
|
std::uint32_t | seed ) |
|
inline |
Constructor to initialize with specific frequency scaling and seed.
- Parameters
-
| kw | Frequency scaling vector. |
| seed | Random seed for noise generation. |
◆ get_kw()
| glm::vec2 hmap::NoiseFunction::get_kw |
( |
| ) |
const |
|
inline |
Get the frequency scaling vector.
- Returns
- The current frequency scaling vector.
◆ get_seed()
| std::uint32_t hmap::NoiseFunction::get_seed |
( |
| ) |
const |
|
inline |
Get the random seed.
- Returns
- The current random seed.
◆ set_seed()
| void hmap::NoiseFunction::set_seed |
( |
std::uint32_t | new_seed | ) |
|
|
inline |
Set a new random seed for noise generation.
- Parameters
-
| new_seed | The new random seed. |
◆ set_kw()
| void hmap::NoiseFunction::set_kw |
( |
glm::vec2 | new_kw | ) |
|
|
inline |
Set a new frequency scaling vector.
- Parameters
-
| new_kw | The new frequency scaling vector. |
◆ kw
| glm::vec2 hmap::NoiseFunction::kw |
|
protected |
Frequency scaling vector.
◆ seed
| std::uint32_t hmap::NoiseFunction::seed |
|
protected |
Random seed for noise generation.
The documentation for this class was generated from the following file: