clamp

fun clamp(value: Float, min: Float, max: Float): Float(source)

Clamps the value between the minimum and maximum