Returns the interpolated value.

Namespace:  SGP.XUtility
Assembly:  SGP.XUtility (in SGP.XUtility.dll)
Version: 1.2.3019.18718

Syntax

C#
public static float Interpolate(
	float v1,
	float v2,
	double t
)

Parameters

v1
Type: System..::.Single
A first value.
v2
Type: System..::.Single
A second value.
t
Type: System..::.Double
Parametrization.

Return Value

The value of linear interpolation from v1 to v2 according to t.

Remarks

For t in the range <0,1> returns the linear interpolated value from <v1,v2>, i.e. for = 0.0 returns v1, for = 1.0 returns v2.

See Also