C# Class Myre.Interpolation

Various interpolation functions, courtesy of Rob Penner http://www.robertpenner.com/easing/
Mostrar archivo Open project: martindevans/Myre

Public Methods

Method Description
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.

Method Details

BackEaseIn() public static method

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.
return float>.Func

BackEaseInOut() public static method

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.
return float>.Func

BackEaseOut() public static method

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.
return float>.Func

BackEaseOutIn() public static method

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.
return float>.Func

BounceEaseIn() public static method

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.
return float>.Func

BounceEaseInOut() public static method

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.
return float>.Func

BounceEaseOut() public static method

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.
return float>.Func

BounceEaseOutIn() public static method

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.
return float>.Func

CircEaseIn() public static method

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.
return float>.Func

CircEaseInOut() public static method

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.
return float>.Func

CircEaseOut() public static method

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.
return float>.Func

CircEaseOutIn() public static method

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.
return float>.Func

CubicEaseIn() public static method

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.
return float>.Func

CubicEaseInOut() public static method

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.
return float>.Func

CubicEaseOut() public static method

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.
return float>.Func

CubicEaseOutIn() public static method

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.
return float>.Func

Derivative() public static method

public static Derivative ( float>.this interpolation, float dt ) : float>.Func
interpolation float>.this
dt float
return float>.Func

ElasticEaseIn() public static method

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.
return float>.Func

ElasticEaseInOut() public static method

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.
return float>.Func

ElasticEaseOut() public static method

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.
return float>.Func

ElasticEaseOutIn() public static method

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.
return float>.Func

ExpoEaseIn() public static method

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.
return float>.Func

ExpoEaseInOut() public static method

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.
return float>.Func

ExpoEaseOut() public static method

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.
return float>.Func

ExpoEaseOutIn() public static method

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.
return float>.Func

Linear() public static method

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.
return float>.Func

None() public static method

Returns a constant value, meaning no interpolation at all
public static None ( float a ) : float>.Func
a float
return float>.Func

QuadEaseIn() public static method

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.
return float>.Func

QuadEaseInOut() public static method

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.
return float>.Func

QuadEaseOut() public static method

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.
return float>.Func

QuadEaseOutIn() public static method

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.
return float>.Func

QuartEaseIn() public static method

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.
return float>.Func

QuartEaseInOut() public static method

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.
return float>.Func

QuartEaseOut() public static method

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.
return float>.Func

QuartEaseOutIn() public static method

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.
return float>.Func

QuintEaseIn() public static method

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.
return float>.Func

QuintEaseInOut() public static method

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.
return float>.Func

QuintEaseOut() public static method

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.
return float>.Func

QuintEaseOutIn() public static method

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.
return float>.Func

SineEaseIn() public static method

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.
return float>.Func

SineEaseInOut() public static method

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.
return float>.Func

SineEaseOut() public static method

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.
return float>.Func

SineEaseOutIn() public static method

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.
return float>.Func