Table of Contents

Interface IResponseCurve<T>

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

This interface represents a piecewise linear curve, with input-output pairs at the bends. Outputs can be any type for which continuous interpolation makes sense.

public interface IResponseCurve<out T>

Type Parameters

T

The number type of the input and output, usually float or double, but anything that can be interpolated (such as vectors and colors) is possible.

Extension Methods

Remarks

This class is the base of the that described in AI Programming Wisdom 1, "The Beauty of Response Curves", by Bob Alexander.

The inputs need not be spread uniformly.

Properties

this[float]

Evaluates the curve at the given input and returns the result.

Methods

Evaluate(float)

Evaluates the curve at the given input and returns the result.