Table of Contents

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

x0 float

The minimum input value.

x1 float

The maximum input value.

y0 int

The output value at x0.

y1 int

The output value at x1.

Returns

ResponseCurveInt

A new ResponseCurveInt.