23 lines
470 B
C#
23 lines
470 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace AiwazAnimator.Animations
|
|
{
|
|
class LinearAnimation
|
|
: Animation
|
|
{
|
|
public LinearAnimation()
|
|
: base()
|
|
{
|
|
AnimationName = "Linear";
|
|
}
|
|
|
|
protected override float Calculate(float NormalizedTime)
|
|
{
|
|
return StartValue * (1.0f - NormalizedTime) + EndValue * NormalizedTime;
|
|
}
|
|
}
|
|
}
|