Struct LerpFloat
Linearly interpolate between two values a and b by ratio t.
Inherited Members
Namespace: UnityEngine.Splines.Interpolators
Syntax
public struct LerpFloat : IInterpolator<float>
Methods
Interpolate(Single, Single, Single)
Linearly interpolates between a and b by t.
Declaration
public float Interpolate(float a, float b, float t)
Parameters
Type | Name | Description |
---|---|---|
Single | a | Start value, returned when t = 0. |
Single | b | End value, returned when t = 1. |
Single | t | Interpolation ratio. |
Returns
Type | Description |
---|---|
Single | The interpolated result between the two values. |