Method Interp
Interp(T, T, float)
Interpolates between two values given an interpolation factor t
.
Declaration
public virtual void Interp(T from, T to, float t)
Parameters
Type | Name | Description |
---|---|---|
T | from | The value to interpolate from |
T | to | The value to interpolate to |
float | t | An interpolation factor (generally in range |
Remarks
By default this method does a "snap" interpolation, meaning it will return the value
to
if t
is higher than 0, from
otherwise.