nearest

abstract fun nearest(range: ClosedRange<T>, interpolator: Interpolator<T>, progress: Float): Float?(source)

Returns the closest marked value to progress based on the sequence that marks would return for the same range and interpolator.

Return

the mark closest to this value, or null if marks is empty.

Parameters

range

of the slider being marked

interpolator

of the slider being marked

progress

to check