port from perforce
This commit is contained in:
21
aiwaz/Aiwaz.Common/Animations/LinearValueAnimation.cs
Normal file
21
aiwaz/Aiwaz.Common/Animations/LinearValueAnimation.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user