Clamps the value x between min and max
rtype:float
This function has been overriden from pymel.util.mathutils.clamp to work element-wise on iterables