#include "proctext.h" float clamp(float x, float a, float b) { return (x < a ? a : (x > b ? b : x)); }