Method GetLerp
- Namespace
- Gamelogic.Extensions.Algorithms
- Assembly
- Gamelogic.Extensions.dll
GetLerp(float, float, float, float)
Creates a ResponseCurveFloat that linearly interpolates between two output values over a given input range.
public static ResponseCurveFloat GetLerp(float x0, float x1, float y0, float y1)
Parameters
x0floatThe minimum input value.
x1floatThe maximum input value.
y0floatThe output value at
x0.y1floatThe output value at
x1.