Math minmaxclamp

poiru: does this work better?
Please use spaces instead of tabs for aligning the comments.