Change vec.SetMinMax() to vec.Clamp()