Browse Source

Rename AnimatorStateMachine to AnimationsEngine to properly reflect the functions of the new algorithm.

pull/1793/head
Jumar Macato 8 years ago
parent
commit
5d49c5f969
No known key found for this signature in database GPG Key ID: B19884DAC3A5BF3F
  1. 7
      src/Avalonia.Animation/AnimationsEngine`1.cs

7
src/Avalonia.Animation/AnimatorStateMachine`1.cs → src/Avalonia.Animation/AnimationsEngine`1.cs

@ -6,9 +6,10 @@ using Avalonia.Data;
namespace Avalonia.Animation
{
/// <summary>
/// Provides statefulness for keyframe animations.
/// Handles interpolatoin and time-related functions
/// for keyframe animations.
/// </summary>
internal class AnimatorStateMachine<T> : IObservable<T>, IDisposable
internal class AnimationsEngine<T> : IObservable<T>, IDisposable
{
T lastInterpValue;
T firstKFValue;
@ -40,7 +41,7 @@ namespace Avalonia.Animation
private IObserver<T> targetObserver;
private readonly Action onCompleteAction;
public AnimatorStateMachine(Animation animation, Animatable control, Animator<T> animator, Action OnComplete)
public AnimationsEngine(Animation animation, Animatable control, Animator<T> animator, Action OnComplete)
{
if (animation.SpeedRatio <= 0 || DoubleUtils.AboutEqual(animation.SpeedRatio, 0))
throw new InvalidOperationException("Speed ratio cannot be negative or zero.");
Loading…
Cancel
Save