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

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

#include <functions.hpp>

Public Member Functions

float operator() (float x, float y, float ctrl_param=0.f) const
 BiquadFunction (float gain, glm::vec2 center)
 Construct a new Biquad Function object.

Protected Attributes

float gain
 Gain value that controls the steepness of the bump.
glm::vec2 center
 Primitive reference center.

Detailed Description

Biquad (x, y) function class.

This class models a biquad function with a specified gain and reference center. It extends the base Function class.

Constructor & Destructor Documentation

◆ BiquadFunction()

hmap::BiquadFunction::BiquadFunction ( float gain,
glm::vec2 center )

Construct a new Biquad Function object.

Parameters
gainGain that controls the steepness of the bump.
centerPrimitive reference center.

Member Function Documentation

◆ operator()()

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

Member Data Documentation

◆ gain

float hmap::BiquadFunction::gain
protected

Gain value that controls the steepness of the bump.

◆ center

glm::vec2 hmap::BiquadFunction::center
protected

Primitive reference center.


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