class EaseFuncs
A collection of standard easing functions.
Syntax
public static class EaseFuncs
Remarks
These functions were all taken from easings.net, you can use their animations for reference.
Methods
View SourceBackIn(Single)
Easing function that backs off before continuing.
Declaration
public static float BackIn(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceBackInOut(Single)
Easing function that backs off before continuing and overshoots the end.
Declaration
public static float BackInOut(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceBackOut(Single)
Easing function that overshoots the end.
Declaration
public static float BackOut(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceBounceIn(Single)
Easing function with a bounce in and out.
Declaration
public static float BounceIn(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceBounceInOut(Single)
Easing function with a bounce in and out.
Declaration
public static float BounceInOut(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceBounceOut(Single)
Easing function with a bounce in and out.
Declaration
public static float BounceOut(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceCircIn(Single)
Easing function with a circular ease in.
Declaration
public static float CircIn(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceCircInOut(Single)
Easing function with a circular ease in and out.
Declaration
public static float CircInOut(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceCircOut(Single)
Easing function with a circular out.
Declaration
public static float CircOut(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceCubicIn(Single)
Easing function with a cubic ease in.
Declaration
public static float CubicIn(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceCubicInOut(Single)
Easing function with a cubic ease in and out.
Declaration
public static float CubicInOut(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceCubicOut(Single)
Easing function with a cubic ease out.
Declaration
public static float CubicOut(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceElasticIn(Single)
Easing function with an elastic ease in.
Declaration
public static float ElasticIn(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceElasticInOut(Single)
Easing function with an elastic ease in and out.
Declaration
public static float ElasticInOut(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceElasticOut(Single)
Easing function with an elastic ease out.
Declaration
public static float ElasticOut(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceExpoIn(Single)
Easing function with a exponential ease in.
Declaration
public static float ExpoIn(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceExpoInOut(Single)
Easing function with a exponential ease in and out.
Declaration
public static float ExpoInOut(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceExpoOut(Single)
Easing function with a exponential ease out.
Declaration
public static float ExpoOut(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceLinear(Single)
Linear easing function.
Declaration
public static float Linear(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceQuadIn(Single)
Easing function with a quadratic ease in.
Declaration
public static float QuadIn(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceQuadInOut(Single)
Easing function with a quadratic ease in and out.
Declaration
public static float QuadInOut(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceQuadOut(Single)
Easing function with a quadratic ease out.
Declaration
public static float QuadOut(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceQuartIn(Single)
Easing function with a quartic ease in.
Declaration
public static float QuartIn(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceQuartInOut(Single)
Easing function with a quartic ease in and out.
Declaration
public static float QuartInOut(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceQuartOut(Single)
Easing function with a quartic ease out.
Declaration
public static float QuartOut(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceQuintIn(Single)
Easing function with a quintic ease in.
Declaration
public static float QuintIn(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceQuintInOut(Single)
Easing function with a quintic ease in and out.
Declaration
public static float QuintInOut(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceQuintOut(Single)
Easing function with a quintic ease out.
Declaration
public static float QuintOut(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceSineIn(Single)
Easing function with a sine ease in.
Declaration
public static float SineIn(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceSineInOut(Single)
Easing function with a sine ease in and out.
Declaration
public static float SineInOut(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceSineOut(Single)
Easing function with a sine ease out.
Declaration
public static float SineOut(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t | Normalized time in range [0, 1]. |
Returns
| Type | Description |
|---|---|
| System.Single | The interpolated value. |
See Also
View SourceToFunc(Ease)
Get an easing function.
Declaration
public static EaseFunc ToFunc(this Ease ease)
Parameters
| Type | Name | Description |
|---|---|---|
| Ease | ease | The desired easing function. |
Returns
| Type | Description |
|---|---|
| EaseFunc | The easing function. |