Is it okay to combine cases that share assignments and repeat the case for assignments that are not shared, or is it preferred to just keep each se
cases
case
I would say don't combine - too high of a chance of making a mistake...like you did. The 2nd case 180 will never be reached, since the first one has a break; after it.
case 180
break;
If everything is the same, I think it's ok to combine though (like the -90, 90).