C# Class Indiefreaks.Xna.Core.Interpolator

ファイルを表示 Open project: Indiefreaks/igf Class Usage Examples

Public Methods

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

Creates a new Interpolator.

Create ( float start, float end, float length, InterpolatorScaleDelegate scale, InterpolatorEaseDirection direction, Action step, Action completed ) : Interpolator

Creates a new Interpolator.

Stop ( ) : void

Stops the Interpolator.

Update ( float dt ) : void

Updates all the Interpolators.

Method Details

Create() public static method

Creates a new Interpolator.
public static 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

Create() public static method

Creates a new Interpolator.
public static Create ( float start, float end, float length, InterpolatorScaleDelegate scale, InterpolatorEaseDirection direction, 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.
scale InterpolatorScaleDelegate A method to perform
direction InterpolatorEaseDirection
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

Stop() public method

Stops the Interpolator.
public Stop ( ) : void
return void

Update() public static method

Updates all the Interpolators.
public static Update ( float dt ) : void
dt float The elapsed time (in seconds) to advance the timers. Generally you want to pass in (float)gameTime.ElapsedGameTime.TotalSeconds from your main Game class.
return void