Interpolator

interface Interpolator<T>(source)

Allows interpolating between two start and end values of T given some progress.

Functions

Link copied to clipboard
open fun accessibleNumericValue(start: T, end: T, value: T): Double

Returns a number to represent value to accessibility systems.

Link copied to clipboard
abstract fun lerp(start: T, end: T, progress: Float): T

Interpolates between start and end (inclusive).

Link copied to clipboard
abstract fun progress(start: T, end: T, value: T): Float

Returns the progress of value between start and end (inclusive).