Dalamud/Dalamud/Interface/Animation/EasingFunctions/OutQuint.cs
2025-03-23 18:15:29 -07:00

24 lines
603 B
C#

namespace Dalamud.Interface.Animation.EasingFunctions;
/// <summary>
/// Class providing an "OutQuint" easing animation.
/// </summary>
public class OutQuint : Easing
{
/// <summary>
/// Initializes a new instance of the <see cref="OutQuint"/> class.
/// </summary>
/// <param name="duration">The duration of the animation.</param>
public OutQuint(TimeSpan duration)
: base(duration)
{
// ignored
}
/// <inheritdoc/>
public override void Update()
{
var p = this.Progress;
this.ValueUnclamped = 1 - Math.Pow(1 - p, 5);
}
}