C# Class geek.GameEngine.AnimatedProperties.Interpolate

The class that provides common interpolation patterns for a value in a range.
Mostra file Open project: impworks/xna.geek.engine

Public Methods

Method Description
BackBoth ( float min, float max, float tweenState ) : float

Smoothly interpolate a value, retracking back a bit on both start and end.

BackIn ( float min, float max, float tweenState ) : float

Smoothly interpolate a value, retracking back a bit on start.

BackOut ( float min, float max, float tweenState ) : float

Smoothly interpolate a value, overshooting and retracking back a bit on end.

Bounce ( float min, float max, float tweenState ) : float

Smoothly interpolate the value, bouncing a few times at the end.

EaseBothHard ( float min, float max, float tweenState ) : float

Smoothly interpolate a value with quartic easing on both points.

EaseBothMedium ( float min, float max, float tweenState ) : float

Smoothly interpolate a value with cubic easing on both points.

EaseBothSoft ( float min, float max, float tweenState ) : float

Smoothly interpolate a value with quadratic easing on both points.

EaseInHard ( float min, float max, float tweenState ) : float

Smoothly interpolate a value with quartic easing in.

EaseInMedium ( float min, float max, float tweenState ) : float

Smoothly interpolate a value with cubic easing in.

EaseInSoft ( float min, float max, float tweenState ) : float

Smoothly interpolate a value with square easing in.

EaseOutHard ( float min, float max, float tweenState ) : float

Smoothly interpolate a value with quartic easing out.

EaseOutMedium ( float min, float max, float tweenState ) : float

Smoothly interpolate a value with cubic easing out.

EaseOutSoft ( float min, float max, float tweenState ) : float

Smoothly interpolate a value with quadratic easing out.

Elastic ( float min, float max, float tweenState ) : float

Smoothly interpolate the object, having a few ripples at the end.

GetMethod ( InterpolationMode mode ) : InterpolationMethod

Get appropriate method for an interpolation mode.

Linear ( float min, float max, float tweenState ) : float

Linearly interpolate a value between two points:

SinePulse ( float state, float amount, float tweenState ) : float

Pulse around a value using sine waveform.

SinePulseBack ( float state, float amount, float tweenState ) : float

Pulse around a value using inverse sine waveform.

Method Details

BackBoth() public static method

Smoothly interpolate a value, retracking back a bit on both start and end.
public static BackBoth ( float min, float max, float tweenState ) : float
min float Range start.
max float Range end.
tweenState float Tweening state between 0 (not applied) and 1 (completed).
return float

BackIn() public static method

Smoothly interpolate a value, retracking back a bit on start.
public static BackIn ( float min, float max, float tweenState ) : float
min float Range start.
max float Range end.
tweenState float Tweening state between 0 (not applied) and 1 (completed).
return float

BackOut() public static method

Smoothly interpolate a value, overshooting and retracking back a bit on end.
public static BackOut ( float min, float max, float tweenState ) : float
min float Range start.
max float Range end.
tweenState float Tweening state between 0 (not applied) and 1 (completed).
return float

Bounce() public static method

Smoothly interpolate the value, bouncing a few times at the end.
public static Bounce ( float min, float max, float tweenState ) : float
min float Range start.
max float Range end.
tweenState float Tweening state between 0 (not applied) and 1 (completed).
return float

EaseBothHard() public static method

Smoothly interpolate a value with quartic easing on both points.
public static EaseBothHard ( float min, float max, float tweenState ) : float
min float Range start.
max float Range end.
tweenState float Tweening state between 0 (not applied) and 1 (completed).
return float

EaseBothMedium() public static method

Smoothly interpolate a value with cubic easing on both points.
public static EaseBothMedium ( float min, float max, float tweenState ) : float
min float Range start.
max float Range end.
tweenState float Tweening state between 0 (not applied) and 1 (completed).
return float

EaseBothSoft() public static method

Smoothly interpolate a value with quadratic easing on both points.
public static EaseBothSoft ( float min, float max, float tweenState ) : float
min float Range start.
max float Range end.
tweenState float Tweening state between 0 (not applied) and 1 (completed).
return float

EaseInHard() public static method

Smoothly interpolate a value with quartic easing in.
public static EaseInHard ( float min, float max, float tweenState ) : float
min float Range start.
max float Range end.
tweenState float Tweening state between 0 (not applied) and 1 (completed).
return float

EaseInMedium() public static method

Smoothly interpolate a value with cubic easing in.
public static EaseInMedium ( float min, float max, float tweenState ) : float
min float Range start.
max float Range end.
tweenState float Tweening state between 0 (not applied) and 1 (completed).
return float

EaseInSoft() public static method

Smoothly interpolate a value with square easing in.
public static EaseInSoft ( float min, float max, float tweenState ) : float
min float Range start.
max float Range end.
tweenState float Tweening state between 0 (not applied) and 1 (completed).
return float

EaseOutHard() public static method

Smoothly interpolate a value with quartic easing out.
public static EaseOutHard ( float min, float max, float tweenState ) : float
min float Range start.
max float Range end.
tweenState float Tweening state between 0 (not applied) and 1 (completed).
return float

EaseOutMedium() public static method

Smoothly interpolate a value with cubic easing out.
public static EaseOutMedium ( float min, float max, float tweenState ) : float
min float Range start.
max float Range end.
tweenState float Tweening state between 0 (not applied) and 1 (completed).
return float

EaseOutSoft() public static method

Smoothly interpolate a value with quadratic easing out.
public static EaseOutSoft ( float min, float max, float tweenState ) : float
min float Range start.
max float Range end.
tweenState float Tweening state between 0 (not applied) and 1 (completed).
return float

Elastic() public static method

Smoothly interpolate the object, having a few ripples at the end.
public static Elastic ( float min, float max, float tweenState ) : float
min float Range start.
max float Range end.
tweenState float Tweening state between 0 (not applied) and 1 (completed).
return float

GetMethod() public static method

Get appropriate method for an interpolation mode.
public static GetMethod ( InterpolationMode mode ) : InterpolationMethod
mode InterpolationMode Interpolation mode
return InterpolationMethod

Linear() public static method

Linearly interpolate a value between two points:
public static Linear ( float min, float max, float tweenState ) : float
min float Range start.
max float Range end.
tweenState float Tweening state between 0 (not applied) and 1 (completed).
return float

SinePulse() public static method

Pulse around a value using sine waveform.
public static SinePulse ( float state, float amount, float tweenState ) : float
state float Value to sine-pulse around.
amount float Sine-pulse power.
tweenState float Tweening state between 0 (not applied) and 1 (completed).
return float

SinePulseBack() public static method

Pulse around a value using inverse sine waveform.
public static SinePulseBack ( float state, float amount, float tweenState ) : float
state float Value to sine-pulse around.
amount float Sine-pulse power.
tweenState float Tweening state between 0 (not applied) and 1 (completed).
return float