export function clamp(min, ideal, max) { return Math.max(min, Math.min(ideal, max)); };