Method | Description | |
---|---|---|
Create ( float start, float end, float length, Action |
Creates a new Interpolator.
|
|
Create ( float start, float end, float length, InterpolatorScaleDelegate scale, InterpolatorEaseDirection direction, Action |
Creates a new Interpolator.
|
|
Stop ( ) : void |
Stops the Interpolator.
|
|
Update ( float dt ) : void |
Updates all the Interpolators.
|
public static Create ( float start, float end, float length, Action |
||
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 |
public static Create ( float start, float end, float length, InterpolatorScaleDelegate scale, InterpolatorEaseDirection direction, Action |
||
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 |
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 |