Initializes a new Tween with a given lerp function.
Namespace:
DigitalRuby.WeatherMaker
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax public Tween(
Func<ITween<T>, T, T, float, T> lerpFunc
)
Public Sub New (
lerpFunc As Func(Of ITween(Of T), T, T, Single, T)
)
public:
Tween(
Func<ITween<T>^, T, T, float, T>^ lerpFunc
)
new :
lerpFunc : Func<ITween<'T>, 'T, 'T, float32, 'T> -> Tween
Parameters
- lerpFunc
- Type: SystemFuncITweenT, T, T, Single, T
The interpolation function for the tween type.
Remarks
C# generics are good but not good enough. We need a delegate to know how to
interpolate between the start and end values for the given type.
See Also