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