Interface IInterpolator<T>
An interface that provides interpolation functionality.
Namespace: Unity.LiveCapture
Syntax
public interface IInterpolator<T>
Type Parameters
| Name | Description |
|---|---|
| T | The type of data to interpolate. |
Methods
Interpolate(in T, in T, Single)
Interpolates between a and b by factor t.
Declaration
T Interpolate(in T a, in T b, float t)
Parameters
| Type | Name | Description |
|---|---|---|
| T | a | The value to interpolate from. |
| T | b | To value to interpolate to. |
| Single | t | The interpolation factor. |
Returns
| Type | Description |
|---|---|
| T | The interpolated value. |
Remarks
- When
tis 0 returnsa. - When
tis 1 returnsb. - When
tis 0.5 returns the midpoint ofaandb.