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