A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
737 B

// -----------------------------------------------------------------------
// <copyright file="PropertyTransition.cs" company="Steven Kirk">
// Copyright 2014 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Perspex.Animation
{
using System;
public class LinearDoubleEasing : IEasing<double>
{
public double Ease(double progress, double start, double finish)
{
return ((finish - start) * progress) + start;
}
public object Ease(double progress, object start, object finish)
{
return this.Ease(progress, (double)start, (double)finish);
}
}
}