Table of Contents

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

x0 float

The minimum input value.

x1 float

The maximum input value.

y0 float

The output value at x0.

y1 float

The output value at x1.

Returns

ResponseCurveFloat

A new ResponseCurveFloat.