QuadraticEaseOut.cs 532 B

123456789101112131415161718
  1. // Copyright (c) The Avalonia Project. All rights reserved.
  2. // Licensed under the MIT license. See licence.md file in the project root for full license information.
  3. namespace Avalonia.Animation.Easings
  4. {
  5. /// <summary>
  6. /// Eases out a <see cref="double"/> value
  7. /// using a quadratic function.
  8. /// </summary>
  9. public class QuadraticEaseOut : Easing
  10. {
  11. /// <inheritdoc/>
  12. public override double Ease(double progress)
  13. {
  14. return -(progress * (progress - 2d));
  15. }
  16. }
  17. }