8 // return true if f is OUTSIDE the range [SMIDGE..(max-SMIDGE)]
10 fclip(float f, float max)
12 return f < SMIDGE || f >= (max - SMIDGE);
16 fconstrain(float f, float max)
31 fconstrain2(float f, float min, float max)
46 // wrap f so it's within the range [SMIDGE..(max-SMIDGE)]
47 // assumes f is not outside this range by more than (max - (2 * SMIDGE))
49 fwrap(float f, float max)
51 float upper = max - SMIDGE;
52 float range = upper - SMIDGE;