Guarantee theta >= 0 && theta < 360.