Skip to main content

TweenEasingFunctions

Namespace: MonineEngine.Mathematics.Tweening

Handler for easing functions related to Tweens.

public static class TweenEasingFunctions

Inheritance ObjectTweenEasingFunctions
Attributes NullableContextAttribute, NullableAttribute

Methods

Linear(Single)

The linear easing function.

public static float Linear(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
It just... returns what you gave. Not even kidding.

CubicIn(Single)

The easing function for CubicIn easing.

public static float CubicIn(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using CubicIn easing.

CubicOut(Single)

The easing function for CubicOut easing.

public static float CubicOut(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using CubicOut easing.

CubicInOut(Single)

The easing function for CubicInOut easing.

public static float CubicInOut(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using CubicInOut easing.

QuadraticIn(Single)

The easing function for QuadraticIn easing.

public static float QuadraticIn(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using QuadraticIn easing.

QuadraticOut(Single)

The easing function for QuadraticOut easing.

public static float QuadraticOut(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using QuadraticOut easing.

QuadraticInOut(Single)

The easing function for QuadraticInOut easing.

public static float QuadraticInOut(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using QuadraticInOut easing.

QuarticIn(Single)

The easing function for QuarticIn easing.

public static float QuarticIn(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using QuarticIn easing.

QuarticOut(Single)

The easing function for QuarticOut easing.

public static float QuarticOut(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using QuarticOut easing.

QuarticInOut(Single)

The easing function for QuarticInOut easing.

public static float QuarticInOut(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using QuarticInOut easing.

QuinticIn(Single)

The easing function for QuinticIn easing.

public static float QuinticIn(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using QuinticIn easing.

QuinticOut(Single)

The easing function for QuinticOut easing.

public static float QuinticOut(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using QuinticOut easing.

QuinticInOut(Single)

The easing function for QuinticInOut easing.

public static float QuinticInOut(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using QuinticInOut easing.

SineIn(Single)

The easing function for SineIn easing.

public static float SineIn(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using SineIn easing.

SineOut(Single)

The easing function for SineOut easing.

public static float SineOut(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using SineOut easing.

SineInOut(Single)

The easing function for SineInOut easing.

public static float SineInOut(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using SineInOut easing.

ExponentialIn(Single)

The easing function for ExponentialIn easing.

public static float ExponentialIn(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using ExponentialIn easing.

ExponentialOut(Single)

The easing function for ExponentialOut easing.

public static float ExponentialOut(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using ExponentialOut easing.

ExponentialInOut(Single)

The easing function for ExponentialInOut easing.

public static float ExponentialInOut(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using ExponentialInOut easing.

CircleIn(Single)

The easing function for CircleIn easing.

public static float CircleIn(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using CircleIn easing.

CircleOut(Single)

The easing function for CircleOut easing.

public static float CircleOut(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using CircleOut easing.

CircleInOut(Single)

The easing function for CircleInOut easing.

public static float CircleInOut(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using CircleInOut easing.

ElasticIn(Single)

The easing function for ElasticIn easing.

public static float ElasticIn(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using ElasticIn easing.

ElasticOut(Single)

The easing function for ElasticOut easing.

public static float ElasticOut(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using ElasticOut easing.

ElasticInOut(Single)

The easing function for ElasticInOut easing.

public static float ElasticInOut(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using ElasticInOut easing.

BackIn(Single)

The easing function for BackIn easing.

public static float BackIn(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using BackIn easing.

BackOut(Single)

The easing function for BackOut easing.

public static float BackOut(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using BackOut easing.

BackInOut(Single)

The easing function for BackInOut easing.

public static float BackInOut(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using BackInOut easing.

BounceOut(Single)

The easing function for BackOut easing.

public static float BounceOut(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using BackOut easing.

BounceInOut(Single)

The easing function for BackInOut easing.

public static float BounceInOut(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using BackInOut easing.

BounceIn(Single)

The easing function for BackIn easing.

public static float BounceIn(float value)

Parameters

value Single
The progress of the animation.

Returns

Single
The progress between values A and B, when using BackIn easing.

GetFunctionByType(TweenEaseType)

Returns an easing function based on the given TweenEaseType. If the type is invalid, returns TweenEaseType.Linear.

public static Func<float, float> GetFunctionByType(TweenEaseType type)

Parameters

type TweenEaseType
The type to check.

Returns

Func<Single, Single>
The easing function associated with the given TweenEaseType.