Ease
Namespace: Murder.Utilities
Assembly: Murder.dll
public static class Ease
Static class with useful easer functions that can be used by Tweens. This was copied from: https://github.com/kylepulver/Otter/blob/master/Otter/Utility/Glide/Ease.cs
⭐ Methods
BackIn(double)
public double BackIn(double t)
Back in.
Parameters
t
double
Returns
double
BackInOut(double)
public double BackInOut(double t)
Back in and out.
Parameters
t
double
Returns
double
BackOut(double)
public double BackOut(double t)
Back out.
Parameters
t
double
Returns
double
BackOutSm(double)
public double BackOutSm(double t)
Back out.
Parameters
t
double
Returns
double
BounceIn(double)
public double BounceIn(double t)
Bounce in.
Parameters
t
double
Returns
double
BounceInOut(double)
public double BounceInOut(double t)
Bounce in and out.
Parameters
t
double
Returns
double
BounceOut(double)
public double BounceOut(double t)
Bounce out.
Parameters
t
double
Returns
double
CircIn(double)
public double CircIn(double t)
Circle in.
Parameters
t
double
Returns
double
CircInOut(double)
public double CircInOut(double t)
Circle in and out.
Parameters
t
double
Returns
double
CircOut(double)
public double CircOut(double t)
Circle out
Parameters
t
double
Returns
double
CubeIn(double)
public double CubeIn(double t)
Cubic in.
Parameters
t
double
Returns
double
CubeInOut(double)
public double CubeInOut(double t)
Cubic in and out.
Parameters
t
double
Returns
double
CubeOut(double)
public double CubeOut(double t)
Cubic out.
Parameters
t
double
Returns
double
ElasticIn(double)
public double ElasticIn(double t)
Elastic in.
Parameters
t
double
Returns
double
ElasticInOut(double)
public double ElasticInOut(double t)
Elastic in and out.
Parameters
t
double
Returns
double
ElasticOut(double)
public double ElasticOut(double t)
Elastic out.
Parameters
t
double
Returns
double
Evaluate(double, EaseKind)
public double Evaluate(double t, EaseKind kind)
Do an ease according to
Parameters
t
double
kind
EaseKind
Returns
double
ExpoIn(double)
public double ExpoIn(double t)
Exponential in.
Parameters
t
double
Returns
double
ExpoInOut(double)
public double ExpoInOut(double t)
Exponential in and out.
Parameters
t
double
Returns
double
ExpoOut(double)
public double ExpoOut(double t)
Exponential out.
Parameters
t
double
Returns
double
Linear(double)
public double Linear(double t)
Linear.
Parameters
t
double
Returns
double
QuadIn(double)
public double QuadIn(double t)
Quadratic in.
Parameters
t
double
Returns
double
QuadInOut(double)
public double QuadInOut(double t)
Quadratic in and out.
Parameters
t
double
Returns
double
QuadOut(double)
public double QuadOut(double t)
Quadratic out.
Parameters
t
double
Returns
double
QuartIn(double)
public double QuartIn(double t)
Quart in.
Parameters
t
double
Returns
double
QuartInOut(double)
public double QuartInOut(double t)
Quart in and out.
Parameters
t
double
Returns
double
QuartOut(double)
public double QuartOut(double t)
Quart out.
Parameters
t
double
Returns
double
QuintIn(double)
public double QuintIn(double t)
Quint in.
Parameters
t
double
Returns
double
QuintInOut(double)
public double QuintInOut(double t)
Quint in and out.
Parameters
t
double
Returns
double
QuintOut(double)
public double QuintOut(double t)
Quint out.
Parameters
t
double
Returns
double
SineIn(double)
public double SineIn(double t)
Sine in.
Parameters
t
double
Returns
double
SineInOut(double)
public double SineInOut(double t)
Sine in and out
Parameters
t
double
Returns
double
SineOut(double)
public double SineOut(double t)
Sine out.
Parameters
t
double
Returns
double
ToAndFrom(double)
public double ToAndFrom(double t)
Ease a value to its target and then back.
Parameters
t
double
Returns
double
ZeroToOne(Func<T, TResult>, double, double)
public double ZeroToOne(Func<T, TResult> easeMethod, double duration, double tweenStart)
Parameters
easeMethod
Func<T, TResult>
duration
double
tweenStart
double
Returns
double
BackIn(float)
public float BackIn(float t)
Back in.
Parameters
t
float
Returns
float
BackInOut(float)
public float BackInOut(float t)
Back in and out.
Parameters
t
float
Returns
float
BackOut(float)
public float BackOut(float t)
Back out.
Parameters
t
float
Returns
float
BackOutSm(float)
public float BackOutSm(float t)
Back out.
Parameters
t
float
Returns
float
BounceIn(float)
public float BounceIn(float t)
Bounce in.
Parameters
t
float
Returns
float
BounceInOut(float)
public float BounceInOut(float t)
Bounce in and out.
Parameters
t
float
Returns
float
BounceOut(float)
public float BounceOut(float t)
Bounce out.
Parameters
t
float
Returns
float
CircIn(float)
public float CircIn(float t)
Circle in.
Parameters
t
float
Returns
float
CircInOut(float)
public float CircInOut(float t)
Circle in and out.
Parameters
t
float
Returns
float
CircOut(float)
public float CircOut(float t)
Circle out
Parameters
t
float
Returns
float
CubeIn(float)
public float CubeIn(float t)
Cubic in.
Parameters
t
float
Returns
float
CubeInOut(float)
public float CubeInOut(float t)
Cubic in and out.
Parameters
t
float
Returns
float
CubeOut(float)
public float CubeOut(float t)
Cubic out.
Parameters
t
float
Returns
float
ElasticIn(float)
public float ElasticIn(float t)
Elastic in.
Parameters
t
float
Returns
float
ElasticInOut(float)
public float ElasticInOut(float t)
Elastic in and out.
Parameters
t
float
Returns
float
ElasticOut(float)
public float ElasticOut(float t)
Elastic out.
Parameters
t
float
Returns
float
Evaluate(float, EaseKind)
public float Evaluate(float t, EaseKind kind)
Do an ease according to
Parameters
t
float
kind
EaseKind
Returns
float
ExpoIn(float)
public float ExpoIn(float t)
Exponential in.
Parameters
t
float
Returns
float
ExpoInOut(float)
public float ExpoInOut(float t)
Exponential in and out.
Parameters
t
float
Returns
float
ExpoOut(float)
public float ExpoOut(float t)
Exponential out.
Parameters
t
float
Returns
float
JumpArc(float)
public float JumpArc(float t)
Parameters
t
float
Returns
float
Linear(float)
public float Linear(float t)
Linear.
Parameters
t
float
Returns
float
QuadIn(float)
public float QuadIn(float t)
Quadratic in.
Parameters
t
float
Returns
float
QuadInOut(float)
public float QuadInOut(float t)
Quadratic in and out.
Parameters
t
float
Returns
float
QuadOut(float)
public float QuadOut(float t)
Quadratic out.
Parameters
t
float
Returns
float
QuartIn(float)
public float QuartIn(float t)
Quart in.
Parameters
t
float
Returns
float
QuartInOut(float)
public float QuartInOut(float t)
Quart in and out.
Parameters
t
float
Returns
float
QuartOut(float)
public float QuartOut(float t)
Quart out.
Parameters
t
float
Returns
float
QuintIn(float)
public float QuintIn(float t)
Quint in.
Parameters
t
float
Returns
float
QuintInOut(float)
public float QuintInOut(float t)
Quint in and out.
Parameters
t
float
Returns
float
QuintOut(float)
public float QuintOut(float t)
Quint out.
Parameters
t
float
Returns
float
SineIn(float)
public float SineIn(float t)
Sine in.
Parameters
t
float
Returns
float
SineInOut(float)
public float SineInOut(float t)
Sine in and out
Parameters
t
float
Returns
float
SineOut(float)
public float SineOut(float t)
Sine out.
Parameters
t
float
Returns
float
ToAndFrom(float)
public float ToAndFrom(float t)
Ease a value to its target and then back.
Parameters
t
float
Returns
float
ZeroToOne(Func<T, TResult>, float, float)
public float ZeroToOne(Func<T, TResult> easeMethod, float duration, float tweenStart)
Parameters
easeMethod
Func<T, TResult>
duration
float
tweenStart
float
Returns
float
ToAndFrom(Func<T, TResult>)
public Func<T, TResult> ToAndFrom(Func<T, TResult> easer)
Ease a value to its target and then back. Use this to wrap another easing function.
Parameters
easer
Func<T, TResult>
Returns
Func<T, TResult>
⚡