Method Lerp
Lerp(CameraState, CameraState, float)
Intelligently blend the contents of two states.
Declaration
public static CameraState Lerp(CameraState stateA, 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 |