limitIn

fun Float.limitIn(start: Float, end: Float, startPadding: Float = 0.0f, endPadding: Float = 0.0f): Float(source)

Constrains this value to the inclusive interval between start and end, inset by the supplied paddings.

Receiver

value to constrain

Throws

when the paddings produce an empty interval