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