limitTo

fun Float.limitTo(min: Float, max: Float): Float
fun Int.limitTo(min: Int, max: Int): Int