Interpolator

interface Interpolator<T : Number, Comparable<T>, R>

Interpolator for values of type R, from parameter value of type T.

Since

v2.0.0

Inheritors

Functions

Link copied to clipboard
abstract operator fun get(parameterValue: T): R

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
abstract val endValue: R

Key value of this interpolator at parameter 1.

Link copied to clipboard
abstract val startValue: R

Key value of this interpolator at parameter 0.