|
| unsigned | left () const |
| | The number of steps left to reach the target value. More... |
| |
| | operator const T & () const |
| | Typecast operator that returns the current value of the interpolator. More... |
| |
|
| RampT () |
| | Construct a new ramp. |
| |
| | RampT (const T &val) |
| | Construct a new ramp. More... |
| |
| void | reset (const T &val) |
| | Resets this interpolator to the given value. More... |
| |
| void | setTarget (const T &target, N n) |
| | Sets the interpolation target. More... |
| |
| const T & | target () const |
| | Gets the target value. More... |
| |
|
void | toTarget () |
| | Jumps directly to the target value, bypassing interpolation. |
| |
|
void | update () |
| | Updates the interpolator. |
| |
| void | update (N n) |
| | Updates the interpolator with given amount of time. More... |
| |
| const T & | value () const |
| | Gets the current value. More... |
| |
|
| ~RampT () |
| | Destructor. |
| |
template<class T, class N>
class Nimble::RampT< T, N >
Linear interpolation.
This class is used to interpolate between key-point values. The stepping/time value N van be an integer or floating point number.