clipPos

fun clipPos(pos: Int): Int