delegate LerpFunc<T>
An function that controls how a tweened value is interpolated.
Syntax
public delegate T LerpFunc<T>(T from, T to, float t);
Parameters
Type | Name | Description |
---|---|---|
T | from | The starting value. |
T | to | The value to tween to. |
System.Single | t | Normalized time in range [0, 1]. |
Returns
Type | Description |
---|---|
T | The interpolated value. |
Type Parameters
Name | Description |
---|---|
T | The type being interpolated. |