C# Class Afterglow.Math.LinearInterpolator

Linear interpolator.
Inheritance: IInterpolator
Afficher le fichier Open project: Christof/afterglow Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Interpolates a value for the specified percentage.
public Interpolate ( float percentage ) : float
percentage float The percentage.
Résultat float

LinearInterpolator() public méthode

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