|
HighMap library (C++)
|
Field function class. More...
#include <functions.hpp>

Public Member Functions | |
| float | operator() (float x, float y, float ctrl_param=0.f) const |
| FieldFunction (BaseFn base) | |
| Construct a new FieldFunction object. | |
| FieldFunction (BaseFn base, std::vector< float > xr, std::vector< float > yr, std::vector< float > zr) | |
| Construct a new FieldFunction object with given vectors. | |
| void | set_xr (std::vector< float > new_xr) |
| Set the x coordinates representing the centers of the primitive. | |
| void | set_yr (std::vector< float > new_yr) |
| Set the y coordinates representing the centers of the primitive. | |
| void | set_zr (std::vector< float > new_zr) |
| Set the z coordinates used to scale the primitive in x and y directions, and also to scale the primitive amplitude if requested. | |
Protected Attributes | |
| std::vector< float > | xr |
| std::vector< float > | yr |
| std::vector< float > | zr |
| directions, and to scale the primitive amplitude if requested. | |
Field function class.
|
explicit |
Construct a new FieldFunction object.
| base | Base function functor. |
| hmap::FieldFunction< BaseFn >::FieldFunction | ( | BaseFn | base, |
| std::vector< float > | xr, | ||
| std::vector< float > | yr, | ||
| std::vector< float > | zr ) |
Construct a new FieldFunction object with given vectors.
| base | Base function functor. |
| xr | Vector of x coordinates representing the centers of the primitive. |
| yr | Vector of y coordinates representing the centers of the primitive. |
| zr | Vector of z coordinates used to scale the primitive in x and y directions, and also to scale the primitive amplitude if requested. |
| float hmap::FieldFunction< BaseFn >::operator() | ( | float | x, |
| float | y, | ||
| float | ctrl_param = 0.f ) const |
|
inline |
Set the x coordinates representing the centers of the primitive.
| new_xr | New vector of x coordinates. |
|
inline |
Set the y coordinates representing the centers of the primitive.
| new_yr | New vector of y coordinates. |
|
inline |
Set the z coordinates used to scale the primitive in x and y directions, and also to scale the primitive amplitude if requested.
| new_zr | New vector of z coordinates. |
|
protected |
Vector of x coordinates representing the centers of the primitive.
|
protected |
Vector of y coordinates representing the centers of the primitive.
|
protected |
directions, and to scale the primitive amplitude if requested.
Vector of z coordinates used to scale the primitive in x and y