class
Easing
public static abstract sealed class Easing Easing functions used for transitions. See https://easings.net/ for examples.
Methods
static Single EaseInOut(Single f) static Single EaseIn(Single f) static Single EaseOut(Single f) static Single Linear(Single f) Linear easing function, x=y.
f — Input in range of 0 to 1. returns — Output in range 0 to 1.
static Single QuadraticIn(Single f) Quadratic ease in.
f — Input in range of 0 to 1. returns — Output in range 0 to 1.
static Single QuadraticOut(Single f) Quadratic ease out.
f — Input in range of 0 to 1. returns — Output in range 0 to 1.
static Single QuadraticInOut(Single f) Quadratic ease in and out.
f — Input in range of 0 to 1. returns — Output in range 0 to 1.
static Single ExpoIn(Single f) Exponential ease in.
f — Input in range of 0 to 1. returns — Output in range 0 to 1.
static Single ExpoOut(Single f) Exponential ease out.
f — Input in range of 0 to 1. returns — Output in range 0 to 1.
static Single ExpoInOut(Single f) Exponential ease in and out.
f — Input in range of 0 to 1. returns — Output in range 0 to 1.
static Single BounceIn(Single f) Bouncy ease in.
f — Input in range of 0 to 1. returns — Output in range 0 to 1.
static Single BounceOut(Single f) Bouncy ease out.
f — Input in range of 0 to 1. returns — Output in range 0 to 1.
static Single BounceInOut(Single f) Bouncy ease in and out.
f — Input in range of 0 to 1. returns — Output in range 0 to 1.
static Single SineEaseIn(Single f) Sine ease in.
f — Input in range of 0 to 1. returns — Output in range 0 to 1.
static Single SineEaseOut(Single f) Sine ease out.
f — Input in range of 0 to 1. returns — Output in range 0 to 1.
static Single SineEaseInOut(Single f) Sine ease in and out.
f — Input in range of 0 to 1. returns — Output in range 0 to 1.
static Function GetFunction(String name) Get an easing function by name (ie, "ease-in"). If the function doesn't exist we return QuadraticInOut
static Boolean TryGetFunction(String name, Function function) Get an easing function by name (ie, "ease-in"). If the function exists we return true, otherwise return false.