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