Method Interp
Interp(T, T, float)
Interpolates two values using a factor t.
Declaration
public virtual void Interp(T from, T to, float t)
Parameters
| Type | Name | Description |
|---|---|---|
| T | from | The start value. |
| T | to | The end value. |
| float | t | The interpolation factor in range [0,1]. |
Remarks
By default, this method does a "snap" interpolation, meaning it returns the value
to if t is higher than 0, and from
otherwise.