Wrap angle to 360 degrees correctly.