constrain

fun constrain(width: Int, height: Int): Pair<Int, Int>(source)