From 8a24448cb665ca4c14739fd4e4c43785664fbecf Mon Sep 17 00:00:00 2001 From: ivan tkachenko Date: Sat, 6 Dec 2025 23:25:55 +0200 Subject: [PATCH] Consistent ordering of Easing functions in C# --- MuzikaGromche/Plugin.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MuzikaGromche/Plugin.cs b/MuzikaGromche/Plugin.cs index 96db54d..005541c 100644 --- a/MuzikaGromche/Plugin.cs +++ b/MuzikaGromche/Plugin.cs @@ -992,8 +992,8 @@ namespace MuzikaGromche public readonly record struct Easing(string Name, Func Eval) { public static Easing Linear = new("Linear", static x => x); - public static Easing OutCubic = new("OutCubic", static x => 1 - Mathf.Pow(1f - x, 3f)); public static Easing InCubic = new("InCubic", static x => x * x * x); + public static Easing OutCubic = new("OutCubic", static x => 1 - Mathf.Pow(1f - x, 3f)); public static Easing InOutCubic = new("InOutCubic", static x => x < 0.5f ? 4f * x * x * x : 1 - Mathf.Pow(-2f * x + 2f, 3f) / 2f); public static Easing InExpo = new("InExpo", static x => x == 0f ? 0f : Mathf.Pow(2f, 10f * x - 10f)); public static Easing OutExpo = new("OutExpo", static x => x == 1f ? 1f : 1f - Mathf.Pow(2f, -10f * x));