EaseUtility
Evaluate an easing function at normalized time t. Use the returned progress in calculations without scheduling a tween.
public static partial class EaseUtilityEase.cs · L19Sample 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
- Linear
- InSine
- OutSine
- InOutSine
- InQuad
- OutQuad
- InOutQuad
- InCubic
- OutCubic
- InOutCubic
- InQuart
- OutQuart
- InOutQuart
- InQuint
- OutQuint
- InOutQuint
- InExpo
- OutExpo
- InOutExpo
- InCirc
- OutCirc
- InOutCirc
- InElastic
- OutElastic
- InOutElastic
- InBack
- OutBack
- InOutBack
- InBounce
- OutBounce
- InOutBounce
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
tfloatNormalized time at which to evaluate the ease.easeEaseEasing function mapping normalized time to progress.- Returns
float
public static float Evaluate(float t, Easing ease)Parameters and return value
tfloatNormalized time at which to evaluate the ease.easeEasingEasing 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
xfloatNormalized 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
xfloatNormalized 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
xfloatNormalized 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
xfloatNormalized 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
xfloatNormalized 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
xfloatNormalized 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
xfloatNormalized 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
xfloatNormalized 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
xfloatNormalized 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
xfloatNormalized 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
xfloatNormalized 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
xfloatNormalized 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
xfloatNormalized 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
xfloatNormalized 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
xfloatNormalized 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
xfloatNormalized 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
xfloatNormalized 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
xfloatNormalized 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
xfloatNormalized 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
xfloatNormalized 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
xfloatNormalized 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
xfloatNormalized 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
xfloatNormalized 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
xfloatNormalized 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
xfloatNormalized 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
xfloatNormalized 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
xfloatNormalized 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
xfloatNormalized 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
xfloatNormalized 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
xfloatNormalized 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
xfloatNormalized time at which to evaluate the ease.- Returns
float
MeatMotion