From 5d49c5f969be55d34408010aed3d1d54a69ed1fc Mon Sep 17 00:00:00 2001 From: Jumar Macato Date: Tue, 14 Aug 2018 23:27:02 +0800 Subject: [PATCH] Rename AnimatorStateMachine to AnimationsEngine to properly reflect the functions of the new algorithm. --- .../{AnimatorStateMachine`1.cs => AnimationsEngine`1.cs} | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) rename src/Avalonia.Animation/{AnimatorStateMachine`1.cs => AnimationsEngine`1.cs} (96%) diff --git a/src/Avalonia.Animation/AnimatorStateMachine`1.cs b/src/Avalonia.Animation/AnimationsEngine`1.cs similarity index 96% rename from src/Avalonia.Animation/AnimatorStateMachine`1.cs rename to src/Avalonia.Animation/AnimationsEngine`1.cs index 0a785ab496..169f0a7ae0 100644 --- a/src/Avalonia.Animation/AnimatorStateMachine`1.cs +++ b/src/Avalonia.Animation/AnimationsEngine`1.cs @@ -6,9 +6,10 @@ using Avalonia.Data; namespace Avalonia.Animation { /// - /// Provides statefulness for keyframe animations. + /// Handles interpolatoin and time-related functions + /// for keyframe animations. /// - internal class AnimatorStateMachine : IObservable, IDisposable + internal class AnimationsEngine : IObservable, IDisposable { T lastInterpValue; T firstKFValue; @@ -40,7 +41,7 @@ namespace Avalonia.Animation private IObserver targetObserver; private readonly Action onCompleteAction; - public AnimatorStateMachine(Animation animation, Animatable control, Animator animator, Action OnComplete) + public AnimationsEngine(Animation animation, Animatable control, Animator animator, Action OnComplete) { if (animation.SpeedRatio <= 0 || DoubleUtils.AboutEqual(animation.SpeedRatio, 0)) throw new InvalidOperationException("Speed ratio cannot be negative or zero.");