C# Class hyades.utils.Interpolator

Afficher le fichier Open project: zfedoran/bubblebound Class Usage Examples

Méthodes publiques

Свойство Type Description
end float
progress float
start float
tag object
value float

Méthodes publiques

Méthode Description
ForceFinish ( ) : void

Forces the interpolator to set itself to its final position and fire off its delegates before invalidating itself.

Interpolator ( float startValue, float endValue, Action step, Action completed ) : System

Creates a new Interpolator.

Interpolator ( float startValue, float endValue, float interpolationLength, Action step, Action completed ) : System

Creates a new Interpolator.

Stop ( ) : void

Stops the Interpolator.

Update ( double elapsed ) : void

Updates the Interpolator.

Private Methods

Méthode Description
Interpolator ( ) : System

Internal constructor used by InterpolatorCollection

Reset ( float s, float e, float l, Action stepFunc, Action completedFunc ) : void

Method Details

ForceFinish() public méthode

Forces the interpolator to set itself to its final position and fire off its delegates before invalidating itself.
public ForceFinish ( ) : void
Résultat void

Interpolator() public méthode

Creates a new Interpolator.
public Interpolator ( float startValue, float endValue, Action step, Action completed ) : System
startValue float The starting value.
endValue float The ending value.
step Action An optional delegate to invoke each update.
completed Action An optional delegate to invoke upon completion.
Résultat System

Interpolator() public méthode

Creates a new Interpolator.
public Interpolator ( float startValue, float endValue, float interpolationLength, Action step, Action completed ) : System
startValue float The starting value.
endValue float The ending value.
interpolationLength float The amount of time, in seconds, for the interpolation to occur.
step Action An optional delegate to invoke each update.
completed Action An optional delegate to invoke upon completion.
Résultat System

Stop() public méthode

Stops the Interpolator.
public Stop ( ) : void
Résultat void

Update() public méthode

Updates the Interpolator.
public Update ( double elapsed ) : void
elapsed double
Résultat void

Property Details

end public_oe property

public float end
Résultat float

progress public_oe property

public float progress
Résultat float

start public_oe property

public float start
Résultat float

tag public_oe property

public object tag
Résultat object

value public_oe property

public float value
Résultat float