[]
Interpolates between two values using a linear function by a given amount.
public static double Lerp(double from, double to, double amount)
| Type | Name | Description |
|---|---|---|
| double | from | Value to interpolate from. |
| double | to | Value to interpolate to. |
| double | amount | Interpolation amount. |
| Type | Description |
|---|---|
| double | The result of linear interpolation of values based on the amount. |
See http://www.encyclopediaofmath.org/index.php/Linear_interpolation and http://fgiesen.wordpress.com/2012/08/15/linear-interpolation-past-present-and-future/
Interpolates between two values using a linear function by a given amount.
public static float Lerp(float from, float to, float amount)
| Type | Name | Description |
|---|---|---|
| float | from | Value to interpolate from. |
| float | to | Value to interpolate to. |
| float | amount | Interpolation amount. |
| Type | Description |
|---|---|
| float | The result of linear interpolation of values based on the amount. |