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);
15 // wrap f so it's within the range [SMIDGE..(max-SMIDGE)]
16 // assumes f is not outside this range by more than (max - (2 * SMIDGE))
18 fwrap(float f, float max)
20 float upper = max - SMIDGE;
21 float range = upper - SMIDGE;