QuarticEaseIn.cs 549 B

12345678910111213141516171819
  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 in a <see cref="double"/> value
  7. /// using a quartic equation.
  8. /// </summary>
  9. public class QuarticEaseIn : Easing
  10. {
  11. /// <inheritdoc/>
  12. public override double Ease(double progress)
  13. {
  14. double p2 = progress * progress;
  15. return p2 * p2;
  16. }
  17. }
  18. }