mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
27 lines
695 B
C#
27 lines
695 B
C#
using System;
|
|
|
|
namespace Dalamud.Interface.Animation.EasingFunctions
|
|
{
|
|
/// <summary>
|
|
/// Class providing an "OutCubic" easing animation.
|
|
/// </summary>
|
|
public class OutCubic : Easing
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="OutCubic"/> class.
|
|
/// </summary>
|
|
/// <param name="duration">The duration of the animation.</param>
|
|
public OutCubic(TimeSpan duration)
|
|
: base(duration)
|
|
{
|
|
// ignored
|
|
}
|
|
|
|
/// <inheritdoc/>
|
|
public override void Update()
|
|
{
|
|
var p = this.Progress;
|
|
this.Value = 1 - Math.Pow(1 - p, 3);
|
|
}
|
|
}
|
|
}
|