RectangleFunction (x, y) function class.
More...
#include <functions.hpp>
|
| float | rx |
| float | ry |
| | Radius of the rectangle.
|
| float | angle |
| | Angle of the rectangle.
|
| float | slope |
| | Slope of the rectangle.
|
| glm::vec2 | center |
| | Primitive reference center.
|
RectangleFunction (x, y) function class.
◆ RectangleFunction()
| hmap::RectangleFunction::RectangleFunction |
( |
float | rx, |
|
|
float | ry, |
|
|
float | angle, |
|
|
float | slope, |
|
|
glm::vec2 | center ) |
Construct a new Rectangle Function object.
- Parameters
-
| rx | Radius of the rectangle (with respect to a unit domain). |
| ry | Radius of the rectangle (with respect to a unit domain). |
| angle | Overall rotation angle (in degrees). |
| slope | Side slope (with respect to a unit domain). |
| center | Primitive reference center. |
◆ operator()()
| float hmap::RectangleFunction::operator() |
( |
float | x, |
|
|
float | y, |
|
|
float | ctrl_param = 0.f ) const |
◆ set_angle()
| void hmap::RectangleFunction::set_angle |
( |
float | new_angle | ) |
|
|
inline |
Set the angle.
- Parameters
-
| new_angle | New angle in degrees. |
◆ rx
| float hmap::RectangleFunction::rx |
|
protected |
◆ ry
| float hmap::RectangleFunction::ry |
|
protected |
◆ angle
| float hmap::RectangleFunction::angle |
|
protected |
◆ slope
| float hmap::RectangleFunction::slope |
|
protected |
◆ center
| glm::vec2 hmap::RectangleFunction::center |
|
protected |
Primitive reference center.
The documentation for this class was generated from the following files: