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

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

#include <functions.hpp>

Public Member Functions

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

Protected Attributes

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

Detailed Description

Bump (x, y) function class.

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

Constructor & Destructor Documentation

◆ BumpFunction()

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

Construct a new Bump Function object.

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

Member Function Documentation

◆ operator()()

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

Member Data Documentation

◆ gain

float hmap::BumpFunction::gain
protected

Gain value that controls the steepness of the bump.

◆ center

glm::vec2 hmap::BumpFunction::center
protected

Primitive reference center.


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