Returns the value that corresponds to the linear interpolation parameter t.
Namespace:
Dundas.BI.Utility
Assembly:
Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.3.0.1000)
Syntax public static double Lerp(
double a,
double b,
double t
)
Public Shared Function Lerp (
a As Double,
b As Double,
t As Double
) As Double
public:
static double Lerp(
double a,
double b,
double t
)
static member Lerp :
a : float *
b : float *
t : float -> float
Parameters
- a
- Type: SystemDouble
The value to interpolate from. - b
- Type: SystemDouble
The value to interpolate to. - t
- Type: SystemDouble
Linear interpolation parameter.
Return Value
Type:
DoubleThe interpolated value.
Remarks
Performs linear interpolation for values in the domain [0, 1] to the range [a, b].
That is, given the points (0, a) and (1, b) this solves for y in the point (t, y).
See Also