C# Class hyades.utils.InterpolatorCollection

A managed collection of interpolators.
Afficher le fichier Open project: zfedoran/bubblebound Class Usage Examples

Méthodes publiques

Méthode Description
Create ( float start, float end, Action step, Action completed ) : Interpolator

Creates a new Interpolator.

Create ( float start, float end, float length, Action step, Action completed ) : Interpolator

Creates a new Interpolator.

GetInstance ( ) : InterpolatorCollection
Update ( double elapsed ) : void

Updates all active Interpolators in the collection.

Private Methods

Méthode Description
InterpolatorCollection ( ) : System

Method Details

Create() public méthode

Creates a new Interpolator.
public Create ( float start, float end, Action step, Action completed ) : Interpolator
start float The starting value.
end float The ending value.
step Action An optional callback to invoke when the Interpolator is updated.
completed Action An optional callback to invoke when the Interpolator completes.
Résultat Interpolator

Create() public méthode

Creates a new Interpolator.
public Create ( float start, float end, float length, Action step, Action completed ) : Interpolator
start float The starting value.
end float The ending value.
length float The length of time, in seconds, to perform the interpolation.
step Action An optional callback to invoke when the Interpolator is updated.
completed Action An optional callback to invoke when the Interpolator completes.
Résultat Interpolator

GetInstance() public static méthode

public static GetInstance ( ) : InterpolatorCollection
Résultat InterpolatorCollection

Update() public méthode

Updates all active Interpolators in the collection.
public Update ( double elapsed ) : void
elapsed double
Résultat void