|
| ArrayFunction (Array array, Vec2< float > kw, bool periodic=true) |
| Construct a new ArrayFunction object.
|
|
void | set_array (Array new_array) |
| Set the array 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.
|
|
Array (x, y) function class.
This class functions like an image sampler with normalized coordinates found on a GPU. It is based on a 2D array, allowing interpolation of any value at a given (x, y) coordinate. Specific boundary conditions, such as periodicity, can also be used.