package vt func clamp(v, low, high int) int { if high < low { low, high = high, low } return min(high, max(low, v)) }