static float limitBetween0and1(float f) { ret max(0f, min(1f, f)); }