Class Easing
Base class facilitating the implementation of easing functions.
Assembly: Dalamud.dll​
public abstract class Easing
Derived:
Expand
Dalamud.Interface.Animation.EasingFunctions.InCirc, Dalamud.Interface.Animation.EasingFunctions.InCubic, Dalamud.Interface.Animation.EasingFunctions.InElastic, Dalamud.Interface.Animation.EasingFunctions.InOutCirc, Dalamud.Interface.Animation.EasingFunctions.InOutCubic, Dalamud.Interface.Animation.EasingFunctions.InOutElastic, Dalamud.Interface.Animation.EasingFunctions.InOutQuint, Dalamud.Interface.Animation.EasingFunctions.InOutSine, Dalamud.Interface.Animation.EasingFunctions.InQuint, Dalamud.Interface.Animation.EasingFunctions.InSine, Dalamud.Interface.Animation.EasingFunctions.OutCirc, Dalamud.Interface.Animation.EasingFunctions.OutCubic, Dalamud.Interface.Animation.EasingFunctions.OutElastic, Dalamud.Interface.Animation.EasingFunctions.OutQuint, Dalamud.Interface.Animation.EasingFunctions.OutSine
Properties​
Point1​
Gets or sets the origin point of the animation.
public Vector2? Point1 { get; set; }
Point2​
Gets or sets the destination point of the animation.
public Vector2? Point2 { get; set; }
EasedPoint​
Gets the resulting point at the current timestep.
public Vector2 EasedPoint { get; }
IsInverse​
Gets or sets a value indicating whether the result of the easing should be inversed.
public bool IsInverse { get; set; }
ValueClamped​
Gets the current value of the animation, from 0 to 1.
public double ValueClamped { get; }
ValueUnclamped​
Gets or sets the current value of the animation, not limited to a range of 0 to 1. Will return numbers outside of this range if accessed beyond animation time.
public double ValueUnclamped { get; protected set; }
Duration​
Gets or sets the duration of the animation.
public TimeSpan Duration { get; set; }
IsRunning​
Gets a value indicating whether the animation is running.
public bool IsRunning { get; }
Elapsed​
Gets or the elapsed time of the animation.
public TimeSpan Elapsed { get; }
IsDone​
Gets a value indicating whether the animation is done.
public bool IsDone { get; }
Progress​
Gets the progress of the animation, from 0 to 1.
protected double Progress { get; }
Methods​
Start()​
Starts the animation from where it was last stopped, or from the start if it was never started before.
public void Start()
Stop()​
Stops the animation at the current point.
public void Stop()
Restart()​
Restarts the animation.
public void Restart()
Reset()​
Resets the animation.
public void Reset()
Update()​
Updates the animation.
public abstract void Update()