C# Класс Myre.Interpolation

Various interpolation functions, courtesy of Rob Penner http://www.robertpenner.com/easing/
Показать файл Открыть проект

Открытые методы

Метод Описание
BackEaseIn ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing in: accelerating from zero velocity.

BackEaseInOut ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing in/out: acceleration until halfway, then deceleration.

BackEaseOut ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing out: decelerating from zero velocity.

BackEaseOutIn ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing out/in: deceleration until halfway, then acceleration.

BounceEaseIn ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a bounce (exponentially decaying parabolic bounce) easing in: accelerating from zero velocity.

BounceEaseInOut ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a bounce (exponentially decaying parabolic bounce) easing in/out: acceleration until halfway, then deceleration.

BounceEaseOut ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a bounce (exponentially decaying parabolic bounce) easing out: decelerating from zero velocity.

BounceEaseOutIn ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a bounce (exponentially decaying parabolic bounce) easing out/in: deceleration until halfway, then acceleration.

CircEaseIn ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a circular (sqrt(1-t^2)) easing in: accelerating from zero velocity.

CircEaseInOut ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a circular (sqrt(1-t^2)) easing in/out: acceleration until halfway, then deceleration.

CircEaseOut ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a circular (sqrt(1-t^2)) easing out: decelerating from zero velocity.

CircEaseOutIn ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a circular (sqrt(1-t^2)) easing in/out: acceleration until halfway, then deceleration.

CubicEaseIn ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a cubic (t^3) easing in: accelerating from zero velocity.

CubicEaseInOut ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a cubic (t^3) easing in/out: acceleration until halfway, then deceleration.

CubicEaseOut ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a cubic (t^3) easing out: decelerating from zero velocity.

CubicEaseOutIn ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a cubic (t^3) easing out/in: deceleration until halfway, then acceleration.

Derivative ( float>.this interpolation, float dt ) : float>.Func
ElasticEaseIn ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for an elastic (exponentially decaying sine wave) easing in: accelerating from zero velocity.

ElasticEaseInOut ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for an elastic (exponentially decaying sine wave) easing in/out: acceleration until halfway, then deceleration.

ElasticEaseOut ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for an elastic (exponentially decaying sine wave) easing out: decelerating from zero velocity.

ElasticEaseOutIn ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for an elastic (exponentially decaying sine wave) easing out/in: deceleration until halfway, then acceleration.

ExpoEaseIn ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for an exponential (2^t) easing in: accelerating from zero velocity.

ExpoEaseInOut ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for an exponential (2^t) easing in/out: acceleration until halfway, then deceleration.

ExpoEaseOut ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for an exponential (2^t) easing out: decelerating from zero velocity.

ExpoEaseOutIn ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for an exponential (2^t) easing out/in: deceleration until halfway, then acceleration.

Linear ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a simple linear tweening, with no easing.

None ( float a ) : float>.Func

Returns a constant value, meaning no interpolation at all

QuadEaseIn ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a quadratic (t^2) easing in: accelerating from zero velocity.

QuadEaseInOut ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a quadratic (t^2) easing in/out: acceleration until halfway, then deceleration.

QuadEaseOut ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a quadratic (t^2) easing out: decelerating from zero velocity.

QuadEaseOutIn ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a quadratic (t^2) easing out/in: deceleration until halfway, then acceleration.

QuartEaseIn ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a quartic (t^4) easing in: accelerating from zero velocity.

QuartEaseInOut ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a quartic (t^4) easing in/out: acceleration until halfway, then deceleration.

QuartEaseOut ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a quartic (t^4) easing out: decelerating from zero velocity.

QuartEaseOutIn ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a quartic (t^4) easing out/in: deceleration until halfway, then acceleration.

QuintEaseIn ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a quintic (t^5) easing in: accelerating from zero velocity.

QuintEaseInOut ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a quintic (t^5) easing in/out: acceleration until halfway, then deceleration.

QuintEaseOut ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a quintic (t^5) easing out: decelerating from zero velocity.

QuintEaseOutIn ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a quintic (t^5) easing in/out: acceleration until halfway, then deceleration.

SineEaseIn ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a sinusoidal (sin(t)) easing in: accelerating from zero velocity.

SineEaseInOut ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a sinusoidal (sin(t)) easing in/out: acceleration until halfway, then deceleration.

SineEaseOut ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a sinusoidal (sin(t)) easing out: decelerating from zero velocity.

SineEaseOutIn ( float b, float c = 1, float d = 1 ) : float>.Func

Easing equation function for a sinusoidal (sin(t)) easing in/out: deceleration until halfway, then acceleration.

Описание методов

BackEaseIn() публичный статический Метод

Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing in: accelerating from zero velocity.
public static BackEaseIn ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

BackEaseInOut() публичный статический Метод

Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing in/out: acceleration until halfway, then deceleration.
public static BackEaseInOut ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

BackEaseOut() публичный статический Метод

Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing out: decelerating from zero velocity.
public static BackEaseOut ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

BackEaseOutIn() публичный статический Метод

Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing out/in: deceleration until halfway, then acceleration.
public static BackEaseOutIn ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

BounceEaseIn() публичный статический Метод

Easing equation function for a bounce (exponentially decaying parabolic bounce) easing in: accelerating from zero velocity.
public static BounceEaseIn ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

BounceEaseInOut() публичный статический Метод

Easing equation function for a bounce (exponentially decaying parabolic bounce) easing in/out: acceleration until halfway, then deceleration.
public static BounceEaseInOut ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

BounceEaseOut() публичный статический Метод

Easing equation function for a bounce (exponentially decaying parabolic bounce) easing out: decelerating from zero velocity.
public static BounceEaseOut ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

BounceEaseOutIn() публичный статический Метод

Easing equation function for a bounce (exponentially decaying parabolic bounce) easing out/in: deceleration until halfway, then acceleration.
public static BounceEaseOutIn ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

CircEaseIn() публичный статический Метод

Easing equation function for a circular (sqrt(1-t^2)) easing in: accelerating from zero velocity.
public static CircEaseIn ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

CircEaseInOut() публичный статический Метод

Easing equation function for a circular (sqrt(1-t^2)) easing in/out: acceleration until halfway, then deceleration.
public static CircEaseInOut ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

CircEaseOut() публичный статический Метод

Easing equation function for a circular (sqrt(1-t^2)) easing out: decelerating from zero velocity.
public static CircEaseOut ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

CircEaseOutIn() публичный статический Метод

Easing equation function for a circular (sqrt(1-t^2)) easing in/out: acceleration until halfway, then deceleration.
public static CircEaseOutIn ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

CubicEaseIn() публичный статический Метод

Easing equation function for a cubic (t^3) easing in: accelerating from zero velocity.
public static CubicEaseIn ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

CubicEaseInOut() публичный статический Метод

Easing equation function for a cubic (t^3) easing in/out: acceleration until halfway, then deceleration.
public static CubicEaseInOut ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

CubicEaseOut() публичный статический Метод

Easing equation function for a cubic (t^3) easing out: decelerating from zero velocity.
public static CubicEaseOut ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

CubicEaseOutIn() публичный статический Метод

Easing equation function for a cubic (t^3) easing out/in: deceleration until halfway, then acceleration.
public static CubicEaseOutIn ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

Derivative() публичный статический Метод

public static Derivative ( float>.this interpolation, float dt ) : float>.Func
interpolation float>.this
dt float
Результат float>.Func

ElasticEaseIn() публичный статический Метод

Easing equation function for an elastic (exponentially decaying sine wave) easing in: accelerating from zero velocity.
public static ElasticEaseIn ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

ElasticEaseInOut() публичный статический Метод

Easing equation function for an elastic (exponentially decaying sine wave) easing in/out: acceleration until halfway, then deceleration.
public static ElasticEaseInOut ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

ElasticEaseOut() публичный статический Метод

Easing equation function for an elastic (exponentially decaying sine wave) easing out: decelerating from zero velocity.
public static ElasticEaseOut ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

ElasticEaseOutIn() публичный статический Метод

Easing equation function for an elastic (exponentially decaying sine wave) easing out/in: deceleration until halfway, then acceleration.
public static ElasticEaseOutIn ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

ExpoEaseIn() публичный статический Метод

Easing equation function for an exponential (2^t) easing in: accelerating from zero velocity.
public static ExpoEaseIn ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

ExpoEaseInOut() публичный статический Метод

Easing equation function for an exponential (2^t) easing in/out: acceleration until halfway, then deceleration.
public static ExpoEaseInOut ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

ExpoEaseOut() публичный статический Метод

Easing equation function for an exponential (2^t) easing out: decelerating from zero velocity.
public static ExpoEaseOut ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

ExpoEaseOutIn() публичный статический Метод

Easing equation function for an exponential (2^t) easing out/in: deceleration until halfway, then acceleration.
public static ExpoEaseOutIn ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

Linear() публичный статический Метод

Easing equation function for a simple linear tweening, with no easing.
public static Linear ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

None() публичный статический Метод

Returns a constant value, meaning no interpolation at all
public static None ( float a ) : float>.Func
a float
Результат float>.Func

QuadEaseIn() публичный статический Метод

Easing equation function for a quadratic (t^2) easing in: accelerating from zero velocity.
public static QuadEaseIn ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

QuadEaseInOut() публичный статический Метод

Easing equation function for a quadratic (t^2) easing in/out: acceleration until halfway, then deceleration.
public static QuadEaseInOut ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

QuadEaseOut() публичный статический Метод

Easing equation function for a quadratic (t^2) easing out: decelerating from zero velocity.
public static QuadEaseOut ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

QuadEaseOutIn() публичный статический Метод

Easing equation function for a quadratic (t^2) easing out/in: deceleration until halfway, then acceleration.
public static QuadEaseOutIn ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

QuartEaseIn() публичный статический Метод

Easing equation function for a quartic (t^4) easing in: accelerating from zero velocity.
public static QuartEaseIn ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

QuartEaseInOut() публичный статический Метод

Easing equation function for a quartic (t^4) easing in/out: acceleration until halfway, then deceleration.
public static QuartEaseInOut ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

QuartEaseOut() публичный статический Метод

Easing equation function for a quartic (t^4) easing out: decelerating from zero velocity.
public static QuartEaseOut ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

QuartEaseOutIn() публичный статический Метод

Easing equation function for a quartic (t^4) easing out/in: deceleration until halfway, then acceleration.
public static QuartEaseOutIn ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

QuintEaseIn() публичный статический Метод

Easing equation function for a quintic (t^5) easing in: accelerating from zero velocity.
public static QuintEaseIn ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

QuintEaseInOut() публичный статический Метод

Easing equation function for a quintic (t^5) easing in/out: acceleration until halfway, then deceleration.
public static QuintEaseInOut ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

QuintEaseOut() публичный статический Метод

Easing equation function for a quintic (t^5) easing out: decelerating from zero velocity.
public static QuintEaseOut ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

QuintEaseOutIn() публичный статический Метод

Easing equation function for a quintic (t^5) easing in/out: acceleration until halfway, then deceleration.
public static QuintEaseOutIn ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

SineEaseIn() публичный статический Метод

Easing equation function for a sinusoidal (sin(t)) easing in: accelerating from zero velocity.
public static SineEaseIn ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

SineEaseInOut() публичный статический Метод

Easing equation function for a sinusoidal (sin(t)) easing in/out: acceleration until halfway, then deceleration.
public static SineEaseInOut ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

SineEaseOut() публичный статический Метод

Easing equation function for a sinusoidal (sin(t)) easing out: decelerating from zero velocity.
public static SineEaseOut ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func

SineEaseOutIn() публичный статический Метод

Easing equation function for a sinusoidal (sin(t)) easing in/out: deceleration until halfway, then acceleration.
public static SineEaseOutIn ( float b, float c = 1, float d = 1 ) : float>.Func
b float Starting value.
c float Final value.
d float Duration of animation.
Результат float>.Func