[]
        
(Showing Draft Content)

C1.Util.DX.DXUtil.Lerp

Lerp Method

Lerp(double, double, double)

Interpolates between two values using a linear function by a given amount.

Declaration
public static double Lerp(double from, double to, double amount)
Parameters
Type Name Description
double from

Value to interpolate from.

double to

Value to interpolate to.

double amount

Interpolation amount.

Returns
Type Description
double

The result of linear interpolation of values based on the amount.

Remarks

Lerp(float, float, float)

Interpolates between two values using a linear function by a given amount.

Declaration
public static float Lerp(float from, float to, float amount)
Parameters
Type Name Description
float from

Value to interpolate from.

float to

Value to interpolate to.

float amount

Interpolation amount.

Returns
Type Description
float

The result of linear interpolation of values based on the amount.

Remarks