C# Class hyades.utils.InterpolatorCollection

A managed collection of interpolators.
显示文件 Open project: zfedoran/bubblebound Class Usage Examples

Public Methods

Method 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

Method Description
InterpolatorCollection ( ) : System

Method Details

Create() public method

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.
return Interpolator

Create() public method

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.
return Interpolator

GetInstance() public static method

public static GetInstance ( ) : InterpolatorCollection
return InterpolatorCollection

Update() public method

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