C# Class Afterglow.Math.LinearInterpolator

Linear interpolator.
Inheritance: IInterpolator
Show file Open project: Christof/afterglow Class Usage Examples

Public Methods

Method Description
Interpolate ( float percentage ) : float

Interpolates a value for the specified percentage.

LinearInterpolator ( float startValue, float endValue )

Initializes a new instance of the LinearInterpolator class.

Method Details

Interpolate() public method

Interpolates a value for the specified percentage.
public Interpolate ( float percentage ) : float
percentage float The percentage.
return float

LinearInterpolator() public method

Initializes a new instance of the LinearInterpolator class.
public LinearInterpolator ( float startValue, float endValue )
startValue float The start value.
endValue float The end value.