Method Lerp
Lerp(in CameraState, in CameraState, float)
Intelligently blend the contents of two states.
Declaration
public static CameraState Lerp(in CameraState stateA, in CameraState stateB, float t)
Parameters
| Type | Name | Description |
|---|---|---|
| CameraState | stateA | The first state, corresponding to t=0 |
| CameraState | stateB | The second state, corresponding to t=1 |
| float | t | How much to interpolate. Internally clamped to 0..1 |
Returns
| Type | Description |
|---|---|
| CameraState | Linearly interpolated CameraState |