C# Class NewTOAPIA.Interpolator

Datei anzeigen Open project: Wiladams/NewTOAPIA

Public Methods

Method Description
LinearInterpolation ( Point starting, Point ending, double completion ) : Point

Return a value that is a linear interpolation between the beginning value, and the ending value.

LinearInterpolation ( float2 starting, float2 ending, double completion ) : float2

Return a value that is a linear interpolation between the beginning value, and the ending value.

LinearInterpolation ( int starting, int ending, double completion ) : int

Return a value that is a linear interpolation between the beginning value, and the ending value.

Method Details

LinearInterpolation() public static method

Return a value that is a linear interpolation between the beginning value, and the ending value.
public static LinearInterpolation ( Point starting, Point ending, double completion ) : Point
starting Point The initial vector position.
ending Point The final vector position.
completion double The amount of units along in the interpolation. /// this value should range from 0.0 (returns initial value) and 1.0 (returns final value).
return Point

LinearInterpolation() public static method

Return a value that is a linear interpolation between the beginning value, and the ending value.
public static LinearInterpolation ( float2 starting, float2 ending, double completion ) : float2
starting float2 The initial vector position.
ending float2 The final vector position.
completion double The amount of units along in the interpolation. /// this value should range from 0.0 (returns initial value) and 1.0 (returns final value).
return float2

LinearInterpolation() public static method

Return a value that is a linear interpolation between the beginning value, and the ending value.
public static LinearInterpolation ( int starting, int ending, double completion ) : int
starting int The initial vector position.
ending int The final vector position.
completion double The amount of units along in the interpolation. /// this value should range from 0.0 (returns initial value) and 1.0 (returns final value).
return int