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