MeatMotion

EaseUtility

Evaluate an easing function at normalized time t. Use the returned progress in calculations without scheduling a tween.

Namespace
MeatMotion
Assembly
MeatMotion

Jump to members

public static partial class EaseUtility
Ease.cs · L19

Sample an ease without scheduling

Add using MeatMotion;. OutQuad advances faster in the first half of the interval. At normalized time 0.5 its progress is 0.75.

float progress = EaseUtility.OutQuad(0.5f);

Members

Evaluate

Evaluate a built-in ease at normalized time t and return the progress used for interpolation.

public static float Evaluate(float t, Ease ease)
Parameters and return value
t
float Normalized time at which to evaluate the ease.
ease
Ease Easing function mapping normalized time to progress.
Returns
float
public static float Evaluate(float t, Easing ease)
Parameters and return value
t
float Normalized time at which to evaluate the ease.
ease
Easing Easing function mapping normalized time to progress.
Returns
float

Linear

Linear progress. An input of 0.5 gives 0.5.

public static float Linear(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

InSine

Apply the sine easing shape at the start of the interval.

public static float InSine(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

OutSine

Apply the sine easing shape at the end of the interval.

public static float OutSine(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

InOutSine

Apply the sine easing shape at both ends of the interval.

public static float InOutSine(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

InQuad

Apply the quadratic easing shape at the start of the interval.

public static float InQuad(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

OutQuad

Apply the quadratic easing shape at the end of the interval.

public static float OutQuad(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

InOutQuad

Apply the quadratic easing shape at both ends of the interval.

public static float InOutQuad(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

InCubic

Apply the cubic easing shape at the start of the interval.

public static float InCubic(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

OutCubic

Apply the cubic easing shape at the end of the interval.

public static float OutCubic(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

InOutCubic

Apply the cubic easing shape at both ends of the interval.

public static float InOutCubic(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

InQuart

Apply the quartic easing shape at the start of the interval.

public static float InQuart(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

OutQuart

Apply the quartic easing shape at the end of the interval.

public static float OutQuart(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

InOutQuart

Apply the quartic easing shape at both ends of the interval.

public static float InOutQuart(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

InQuint

Apply the quintic easing shape at the start of the interval.

public static float InQuint(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

OutQuint

Apply the quintic easing shape at the end of the interval.

public static float OutQuint(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

InOutQuint

Apply the quintic easing shape at both ends of the interval.

public static float InOutQuint(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

InExpo

Apply the exponential easing shape at the start of the interval.

public static float InExpo(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

OutExpo

Apply the exponential easing shape at the end of the interval.

public static float OutExpo(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

InOutExpo

Apply the exponential easing shape at both ends of the interval.

public static float InOutExpo(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

InCirc

Apply the circular easing shape at the start of the interval.

public static float InCirc(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

OutCirc

Apply the circular easing shape at the end of the interval.

public static float OutCirc(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

InOutCirc

Apply the circular easing shape at both ends of the interval.

public static float InOutCirc(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

InElastic

Apply the elastic easing shape at the start of the interval.

public static float InElastic(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

OutElastic

Apply the elastic easing shape at the end of the interval.

public static float OutElastic(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

InOutElastic

Apply the elastic easing shape at both ends of the interval.

public static float InOutElastic(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

InBack

Apply the overshoot easing shape at the start of the interval.

public static float InBack(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

OutBack

Apply the overshoot easing shape at the end of the interval.

public static float OutBack(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

InOutBack

Apply the overshoot easing shape at both ends of the interval.

public static float InOutBack(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

InBounce

Apply the bounce easing shape at the start of the interval.

public static float InBounce(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

OutBounce

Apply the bounce easing shape at the end of the interval.

public static float OutBounce(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float

InOutBounce

Apply the bounce easing shape at both ends of the interval.

public static float InOutBounce(float x)
Parameters and return value
x
float Normalized time at which to evaluate the ease.
Returns
float