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