Method GetLerp
- Namespace
- Gamelogic.Extensions.Algorithms
- Assembly
- Gamelogic.Extensions.dll
GetLerp(float, float, int, int)
Creates a ResponseCurveInt that linearly interpolates (and rounds) between two output values over a given input range.
public static ResponseCurveInt GetLerp(float x0, float x1, int y0, int y1)
Parameters
x0floatThe minimum input value.
x1floatThe maximum input value.
y0intThe output value at
x0.y1intThe output value at
x1.
Returns
- ResponseCurveInt
A new ResponseCurveInt.