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