|
HighMap library (C++)
|
Slope (x, y) function class. More...
#include <functions.hpp>
Public Member Functions | |
| float | operator() (float x, float y, float ctrl_param=0.f) const |
| SlopeFunction (float angle, float slope, glm::vec2 center) | |
| Construct a new Slope Function object. | |
| void | set_angle (float new_angle) |
| Set the angle. | |
Protected Attributes | |
| float | angle |
| Overall rotation angle (in degrees). | |
| float | slope |
| Step slope. | |
| glm::vec2 | center |
| Primitive reference center. | |
Slope (x, y) function class.
This class models a slope function with a specified angle, slope, and reference center. It extends the base Function class.
| hmap::SlopeFunction::SlopeFunction | ( | float | angle, |
| float | slope, | ||
| glm::vec2 | center ) |
Construct a new Slope Function object.
| angle | Overall rotation angle (in degrees). |
| slope | Step slope. |
| center | Primitive reference center. |
| float hmap::SlopeFunction::operator() | ( | float | x, |
| float | y, | ||
| float | ctrl_param = 0.f ) const |
|
inline |
Set the angle.
| new_angle | New angle in degrees. |
|
protected |
Overall rotation angle (in degrees).
|
protected |
Step slope.
|
protected |
Primitive reference center.