Click or drag to resize
Ab4d.SharpEngine logo

MathUtilsLerp Method

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

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public static float Lerp(
	float from,
	float to,
	float amount
)

Parameters

from  Single
Value to interpolate from.
to  Single
Value to interpolate to.
amount  Single
Interpolation amount.

Return Value

Single
The result of linear interpolation of values based on the amount.
See Also