public void Start(double start, double end, InterperlatorDelegate interpolator, float duration) { this.interpolator = interpolator; this.duration = Math.Max(0f, duration); startValue = start; endValue = end; Finished = false; Value = startValue; difference = endValue - startValue; progress = 0d; stepSize = 1d / this.duration; }
public Animator() { interpolator = Interpolations.Linear; Finished = true; }