Struct CinemachineSplineRoll.LerpRollData
Interpolator for the RollData, with no easing between data points.
Implements
Inherited Members
Namespace: Unity.Cinemachine
Assembly: Unity.Cinemachine.dll
Syntax
public struct CinemachineSplineRoll.LerpRollData : IInterpolator<CinemachineSplineRoll.RollData>
Methods
Interpolate(RollData, RollData, float)
Calculate a value between from and to at time interval.
Declaration
public CinemachineSplineRoll.RollData Interpolate(CinemachineSplineRoll.RollData a, CinemachineSplineRoll.RollData b, float t)
Parameters
Type | Name | Description |
---|---|---|
CinemachineSplineRoll.RollData | a | |
CinemachineSplineRoll.RollData | b | |
float | t | A percentage between 'from' and 'to'. Must be between 0 and 1. |
Returns
Type | Description |
---|---|
CinemachineSplineRoll.RollData | A value between 'from' and 'to'. |
Implements
UnityEngine.Splines.IInterpolator<T>