C# Class hyades.utils.Interpolator

Exibir arquivo Open project: zfedoran/bubblebound Class Usage Examples

Public Properties

Property Type Description
end float
progress float
start float
tag object
value float

Public Methods

Method 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

Method Description
Interpolator ( ) : System

Internal constructor used by InterpolatorCollection

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

Method Details

ForceFinish() public method

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

Interpolator() public method

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

Interpolator() public method

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

Stop() public method

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

Update() public method

Updates the Interpolator.
public Update ( double elapsed ) : void
elapsed double
return void

Property Details

end public_oe property

public float end
return float

progress public_oe property

public float progress
return float

start public_oe property

public float start
return float

tag public_oe property

public object tag
return object

value public_oe property

public float value
return float