Table of Contents

Class StepResponse<T>

Namespace
Gamelogic.Extensions.Algorithms
Assembly
Gamelogic.Extensions.dll

A response curve that maps inputs to discrete output values using a step (non-interpolating) approach.

public class StepResponse<T> : ResponseCurveBase<T>, IResponseCurve<T>

Type Parameters

T

The type of the output values.

Inheritance
StepResponse<T>
Implements
Inherited Members
Extension Methods

Constructors

StepResponse(IEnumerable<float>, IEnumerable<T>, StepType)

Initializes a new instance of the StepResponse<T> class.

Methods

GetStep(float, T, T)

Gets the step response that returns y0 for all inputs less than x, and y1 for all inputs greater than or equal to x.

Lerp(T, T, float)

Linearly interpolates between the two given samples.