back to index
Envelope
- an interpolated FloatArray
- supports sample&hold, linear, cosinus, quadratic, cubic and quintic interpolation
Inheritance
Object -> FloatArray -> Envelope
Properties
deltaTime -
interpolation -
speed -
time -
Constants
ENV_SH, ENV_LINEAR, ENV_COSINE, ENV_QUADRATIC, ENV_CUBIC, ENV_QUINTIC, ENV_SHRESET, NUM_ENVELOPE_TYPES.
Methods
float get () - return interpolated value
float getDeltaTime ()
int getInterpolation () - query current interpolation function
float getSpeed ()
float getTime ()
boolean isNewEvent () - returns true if a new event has been reached by the last tickPrecise() call
reset ()
setInterpolation (int _type) - one of ENV_SH, ENV_LINEAR, ENV_COSINE..
setSpeed (float _speed)
setTime (float _t)
tickPrecise (float _prec) - calc new state, increase (delta-)time
back to index