public Tween(LerpFunc <T> lerp, T startValue, T endValue, float duration, Ease.EaseFunc easeFunc) { _lerp = lerp; _duration = duration; _easeFunc = easeFunc; CurrentValue = startValue; StartValue = startValue; EndValue = endValue; State = TweenState.Stopped; }
public Int32Tween(int startValue, int endValue, int duration, Ease.EaseFunc easeFunc) : base(MathUtils.Lerp, startValue, endValue, duration, easeFunc) { }
public FloatTween(float startValue, float endValue, float duration, Ease.EaseFunc easeFunc) : base( MathUtils.Lerp, startValue, endValue, duration, easeFunc) { }
public DoubleTween(double startValue, double endValue, float duration, Ease.EaseFunc easeFunc) : base( LerpDouble, startValue, endValue, duration, easeFunc) { }
public Int64Tween(long startValue, long endValue, long duration, Ease.EaseFunc easeFunc) : base(MathUtils.Lerp, startValue, endValue, duration, easeFunc) { }