HighMap library (C++)
Loading...
Searching...
No Matches
hmap::ParberryFunction Class Reference

Parberry (x, y) function class. More...

#include <functions.hpp>

Inheritance diagram for hmap::ParberryFunction:
Collaboration diagram for hmap::ParberryFunction:

Public Member Functions

float operator() (float x, float y, float ctrl_param=0.f) const
 ParberryFunction (glm::vec2 kw, std::uint32_t seed, float mu)
 Construct a new Perlin Function object.
void initialize ()
 Initialize generator.
void set_seed (std::uint32_t)
 Set the seed attribute.
Public Member Functions inherited from hmap::NoiseFunction
 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.

Public Attributes

float mu
 Gradient magnitude exponent.

Additional Inherited Members

Protected Attributes inherited from hmap::NoiseFunction
glm::vec2 kw
 Frequency scaling vector.
std::uint32_t seed
 Random seed for noise generation.

Detailed Description

Parberry (x, y) function class.

Constructor & Destructor Documentation

◆ ParberryFunction()

hmap::ParberryFunction::ParberryFunction ( glm::vec2 kw,
std::uint32_t seed,
float mu )

Construct a new Perlin Function object.

Parameters
kwNoise wavenumbers {kx, ky} for each directions, with respect to a unit domain.
seedRandom seed number.
muGradient magnitude exponent.

Member Function Documentation

◆ operator()()

float hmap::ParberryFunction::operator() ( float x,
float y,
float ctrl_param = 0.f ) const

◆ initialize()

void hmap::ParberryFunction::initialize ( )

Initialize generator.

◆ set_seed()

void hmap::ParberryFunction::set_seed ( std::uint32_t )
inline

Set the seed attribute.

Parameters
new_seedNew seed.

Member Data Documentation

◆ mu

float hmap::ParberryFunction::mu

Gradient magnitude exponent.


The documentation for this class was generated from the following files: