clamp degrees to 360