21 #include "hx3d/math/function.hpp"    27     : _init(init), _speed(speed), _t(init), _func(func)
    35   glm::vec2 coord(0, 0);
    36   _func(coord.x, coord.y, _t);
 void step()
Step the function time. 
 
glm::vec2 sample()
Sample the current coordinates from the math function. 
 
void reset()
Reset the function time. 
 
Function(float init, float speed, std::function< void(float &, float &, float)> func)
Create a function from an initial time value, speed and a math function.