angle from 0 or 1 to 359 or 360
in
Programming Questions
•
1 month ago
I want to limit a angle so it's not negative and not above 360:
- float angle = -810; //radians(-90);
- while(angle <= 0) angle += 360;
- while (angle > 360) angle -= 360;
- println(angle);
With this you can have 361 degrees althought 0 and 360 overlap.
What is more common to do, from 0 to 359 or from 1 to 360 or from 0 to 360?
1