|
Time Manager
C4Time.h
class Interpolator
Encapsulates a general interpolator.
Definition
class Interpolator : public Completable<Interpolator>
Member Functions
Constructor
Interpolator();
Interpolator(float value, float rate = 0.0F, unsigned long mode = kInterpolatorStop, RemapProc *func = &Linear);
Parameters
value |
The initial value of the interpolator.
|
rate |
The rate at which the interpolated value changes. This is measured in value change per millisecond.
|
mode |
The initial interpolation mode. See below for possible values.
|
func |
A pointer to a value remap function.
|
Description
kInterpolatorStop |
The interpolator is stopped.
|
kInterpolatorForward |
The interpolator is moving forward. Only one of kInterpolatorForward and kInterpolatorBackward may be set.
|
kInterpolatorBackward |
The interpolator is moving backward. Only one of kInterpolatorForward and kInterpolatorBackward may be set.
|
kInterpolatorLoop |
The interpolator is loops in the same direction when it reaches the maximum or minimum value.
|
kInterpolatorOscillate |
The interpolator reverses direction when it reaches the maximum value. If kInterpolatorLoop is also set, the interpolator reverses direction when it reaches the minimum value as well.
|
typedef float RemapProc(float);
Base Classes
|