|
HighMap library (C++)
|
Crater (x, y) function class. More...
#include <functions.hpp>
Public Member Functions | |
| float | operator() (float x, float y, float ctrl_param=0.f) const |
| CraterFunction (float radius, float depth, float lip_decay, float lip_height_ratio, glm::vec2 center) | |
| Construct a new Crater Function object. | |
Protected Attributes | |
| float | radius |
| Radius of the crater. | |
| float | depth |
| Depth of the crater. | |
| float | lip_decay |
| Decay rate of the crater's lip. | |
| float | lip_height_ratio |
| Height ratio of the crater's lip. | |
| glm::vec2 | center |
| Primitive reference center. | |
Crater (x, y) function class.
This class models a crater function with specified radius, depth, lip decay, lip height ratio, and reference center. It extends the base Function class.
| hmap::CraterFunction::CraterFunction | ( | float | radius, |
| float | depth, | ||
| float | lip_decay, | ||
| float | lip_height_ratio, | ||
| glm::vec2 | center ) |
Construct a new Crater Function object.
| radius | Radius of the crater (with respect to a unit domain). |
| depth | Depth of the crater (with respect to a unit domain). |
| lip_decay | Decay rate of the crater's lip (with respect to a unit domain). |
| lip_height_ratio | Height ratio of the crater's lip. |
| center | Primitive reference center. |
| float hmap::CraterFunction::operator() | ( | float | x, |
| float | y, | ||
| float | ctrl_param = 0.f ) const |
|
protected |
Radius of the crater.
|
protected |
Depth of the crater.
|
protected |
Decay rate of the crater's lip.
|
protected |
Height ratio of the crater's lip.
|
protected |
Primitive reference center.