Files
bluflame/aiwaz/AiwazAnimator/Animations/LinearAnimation.cs
2026-04-18 22:31:51 +02:00

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;
}
}
}