Method Interpolate
Interpolate(float, float, float)
Linearly interpolates between a and b by t.
Declaration
public float Interpolate(float a, float b, float t)
Parameters
Type | Name | Description |
---|---|---|
float | a | Start value, returned when t = 0. |
float | b | End value, returned when t = 1. |
float | t | Interpolation ratio. |
Returns
Type | Description |
---|---|
float | The interpolated result between the two values. |