UniformLinearMultiInterpolator

Uniform linear multi-interpolator for floating-point number values.

Since

v2.0.0

Constructors

Link copied to clipboard
constructor(values: List<T>, type: KClass<T>)

Functions

Link copied to clipboard
open operator override fun get(parameterValue: T): T

Returns interpolated value for given parameterValue.

Link copied to clipboard
fun <T : Number, Comparable<T>, R1, R2> Interpolator<T, R1>.map(transform: (R1) -> R2): Interpolator<T, R2>

Returns a mapping interpolator, returning values from this interpolator, transformed using given transform function.

Properties

Link copied to clipboard
open override val endValue: T

Key value of this interpolator at parameter 1.

Link copied to clipboard
open override val startValue: T

Key value of this interpolator at parameter 0.

Link copied to clipboard
open override val type: KClass<T>

Type of the parameter and the values.

Link copied to clipboard
open override val values: List<T>

Key values to interpolate between.