DiskFunction (x, y) function class.
More...
#include <functions.hpp>
|
| | DiskFunction (float radius, float slope, glm::vec2 center) |
| | Construct a new Disk Function object.
|
| |
| | Function () |
| | Default constructor. Initializes the delegate function to a default that returns 0.
|
| |
| virtual | ~Function ()=default |
| | Virtual destructor to ensure proper cleanup in derived classes.
|
| |
| | Function (HMAP_FCT_XY_TYPE delegate) |
| | Constructor to initialize with a specific delegate function.
|
| |
| HMAP_FCT_XY_TYPE | get_delegate () const |
| | Get the current delegate function.
|
| |
| float | get_value (float x, float y, float ctrl_param) const |
| | Call the delegate function with given arguments.
|
| |
| void | set_delegate (HMAP_FCT_XY_TYPE new_delegate) |
| | Set a new delegate function.
|
| |
|
| float | radius |
| | Radius of the disk.
|
| |
| float | slope |
| | Slope of the disk.
|
| |
| glm::vec2 | center |
| | Primitive reference center.
|
| |
DiskFunction (x, y) function class.
◆ DiskFunction()
| hmap::DiskFunction::DiskFunction |
( |
float |
radius, |
|
|
float |
slope, |
|
|
glm::vec2 |
center |
|
) |
| |
Construct a new Disk Function object.
- Parameters
-
| radius | Radius of the disk (with respect to a unit domain). |
| slope | Side slope (with respect to a unit domain). |
| center | Primitive reference center. |
◆ radius
| float hmap::DiskFunction::radius |
|
protected |
◆ slope
| float hmap::DiskFunction::slope |
|
protected |
◆ center
| glm::vec2 hmap::DiskFunction::center |
|
protected |
Primitive reference center.
The documentation for this class was generated from the following files: