Test a value in specified range, returning minimum if it's below, and maximum if it's above
Returns the smallest angle between two angles.
Constrains value to the given range (including min, excluding max) via modular arithmetic.