Clamp angle values.