meta-for float in float, double { static float clampZeroToOne(float x, float a, float b) { ret x < 0 ? 0 : x > 1 ? 1 : x; } }