18 lines
663 B
C#
18 lines
663 B
C#
// Copyright (c) 2015 - 2023 Doozy Entertainment. All Rights Reserved.
|
|
// This code can only be used under the standard Unity Asset Store End User License Agreement
|
|
// A Copy of the EULA APPENDIX 1 is available at http://unity3d.com/company/legal/as_terms
|
|
|
|
using static UnityEngine.Mathf;
|
|
|
|
namespace Doozy.Runtime.Reactor.Easings.Eases
|
|
{
|
|
public class EasyEaseEasing : IEasing
|
|
{
|
|
private static float Calculate(float start, float end, float progress) =>
|
|
LerpUnclamped(start, end, Bezier.Evaluate(progress, Ease.Easy));
|
|
|
|
public float Evaluate(float progress) =>
|
|
Calculate(0, 1, Clamp01(progress));
|
|
}
|
|
}
|