4 changed files with 3 additions and 48 deletions
@ -1,20 +0,0 @@ |
|||
namespace Avalonia.Animation.Animators |
|||
{ |
|||
/// <summary>
|
|||
/// Animator that handles <see cref="Matrix"/> properties.
|
|||
/// </summary>
|
|||
public class MatrixAnimator : Animator<Matrix> |
|||
{ |
|||
/// <inheritdocs/>
|
|||
public override Matrix Interpolate(double progress, Matrix oldValue, Matrix newValue) |
|||
{ |
|||
return new Matrix( |
|||
((newValue.M11 - oldValue.M11) * progress) + oldValue.M11, |
|||
((newValue.M12 - oldValue.M12) * progress) + oldValue.M12, |
|||
((newValue.M21 - oldValue.M21) * progress) + oldValue.M21, |
|||
((newValue.M22 - oldValue.M22) * progress) + oldValue.M22, |
|||
((newValue.M31 - oldValue.M31) * progress) + oldValue.M31, |
|||
((newValue.M32 - oldValue.M32) * progress) + oldValue.M32); |
|||
} |
|||
} |
|||
} |
|||
@ -1,11 +0,0 @@ |
|||
using Avalonia.Animation.Animators; |
|||
|
|||
namespace Avalonia.Animation |
|||
{ |
|||
/// <summary>
|
|||
/// Transition class that handles <see cref="AvaloniaProperty"/> with <see cref="Matrix"/> type.
|
|||
/// </summary>
|
|||
public class MatrixTransition : AnimatorDrivenTransition<Matrix, MatrixAnimator> |
|||
{ |
|||
} |
|||
} |
|||
Loading…
Reference in new issue