Files
bluflame/aiwaz/Backup/Aiwaz.Common/Animations/LinearValueAnimation.cs
2026-04-18 22:31:51 +02:00

22 lines
492 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Aiwaz.Common.Animations
{
public class LinearValueAnimation : ValueAnimation
{
public LinearValueAnimation()
: base()
{
AnimationName = "Linear";
}
protected override float Calculate(double NormalizedTime)
{
return (float)(StartValue * (1.0 - NormalizedTime) + EndValue * NormalizedTime);
}
}
}