Summary
Methods
reset()shared
Rewinds the tween to the beginning and restores the initial values of the subject.
set(clock)shared
Moves the tween to a point in time and updates the fields of the subject to match.
update(dt)shared
Advances the tween by a time delta and updates the fields of the subject to match.
Methods
Rewinds the tween to the beginning and restores the initial values of the subject.
Returns
- Boolean true if the tween has reached its end, which is never the case after a reset
Moves the tween to a point in time and updates the fields of the subject to match.
Parameters
- clock Number elapsed time, clamped to the range from 0 to the duration
Returns
- Boolean true if the tween has reached its end
Advances the tween by a time delta and updates the fields of the subject to match.
Parameters
- dt Number time passed since the last update, in the unit of the duration
Returns
- Boolean true if the tween has reached its end