SegmentInterpolator

class SegmentInterpolator(val base: TimeInterpolator, val start: Float = 0.0f, val end: Float = 1.0f) : TimeInterpolator

Takes a base interpolator and extracts out a segment from it as a new TimeInterpolator.

This is useful for sequential animations where each of the child animations should be interpolated so that they match with another animation when combined.

Constructors

Link copied to clipboard
constructor(base: TimeInterpolator, start: Float = 0.0f, end: Float = 1.0f)

Properties

Link copied to clipboard
Link copied to clipboard
val end: Float = 1.0f
Link copied to clipboard
val start: Float = 0.0f

Functions

Link copied to clipboard
open override fun getInterpolation(input: Float): Float