C# Class geek.GameEngine.AnimatedProperties.Interpolate

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

Méthodes publiques

Méthode 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 méthode

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).
Résultat float

BackIn() public static méthode

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).
Résultat float

BackOut() public static méthode

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).
Résultat float

Bounce() public static méthode

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).
Résultat float

EaseBothHard() public static méthode

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).
Résultat float

EaseBothMedium() public static méthode

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).
Résultat float

EaseBothSoft() public static méthode

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).
Résultat float

EaseInHard() public static méthode

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).
Résultat float

EaseInMedium() public static méthode

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).
Résultat float

EaseInSoft() public static méthode

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).
Résultat float

EaseOutHard() public static méthode

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).
Résultat float

EaseOutMedium() public static méthode

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).
Résultat float

EaseOutSoft() public static méthode

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).
Résultat float

Elastic() public static méthode

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).
Résultat float

GetMethod() public static méthode

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

Linear() public static méthode

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).
Résultat float

SinePulse() public static méthode

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).
Résultat float

SinePulseBack() public static méthode

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).
Résultat float