Added GTWeen

This commit is contained in:
Marco 2025-02-24 11:52:50 +01:00
commit 2036e4e748
152 changed files with 5889 additions and 7 deletions

View file

@ -0,0 +1,34 @@
using GTweens.Easings;
namespace GTweens.Interpolators
{
public sealed class IntInterpolator : IInterpolator<int>
{
public static readonly IntInterpolator Instance = new();
IntInterpolator()
{
}
public int Evaluate(
int initialValue,
int finalValue,
float time,
EasingDelegate easingDelegate
)
{
return (int)easingDelegate(initialValue, finalValue, time);
}
public int Subtract(int initialValue, int finalValue)
{
return finalValue - initialValue;
}
public int Add(int initialValue, int finalValue)
{
return finalValue + initialValue;
}
}
}