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

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

#include <functions.hpp>

Public Member Functions

float operator() (float x, float y, float ctrl_param=0.f) const
 GaussianPulseFunction (float sigma, glm::vec2 center)
 Construct a new GaussianPulse Function object.
void set_sigma (float new_sigma)
 Set the half-width.

Protected Attributes

float sigma
 Pulse half-width.
glm::vec2 center
 Primitive reference center.

Detailed Description

GaussianPulse (x, y) function class.

This class models a gaussian pulse function. It extends the base Function class.

Constructor & Destructor Documentation

◆ GaussianPulseFunction()

hmap::GaussianPulseFunction::GaussianPulseFunction ( float sigma,
glm::vec2 center )

Construct a new GaussianPulse Function object.

Parameters
sigmaPulse half-width (with respect to a unit domain).
centerPrimitive reference center.

Member Function Documentation

◆ operator()()

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

◆ set_sigma()

void hmap::GaussianPulseFunction::set_sigma ( float new_sigma)
inline

Set the half-width.

Parameters
new_sigmaNew half-width.

Member Data Documentation

◆ sigma

float hmap::GaussianPulseFunction::sigma
protected

Pulse half-width.

◆ center

glm::vec2 hmap::GaussianPulseFunction::center
protected

Primitive reference center.


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