Bounds

data class Bounds<T>(min: T, max: T)

Generic progress bounds.

Constructors

Bounds
Link copied to clipboard
fun <T> Bounds(min: T, max: T)

Properties

max
Link copied to clipboard
val max: T
min
Link copied to clipboard
val min: T

Extensions

fraction
Link copied to clipboard
fun Bounds<out Number>.fraction(value: Double): Double

Calculate fraction for the given value and bounds.