2

I've got a rotation of something in degrees, however this rotation can be greater than 360 or less than 0.

How can I multiply/divide this to be within 360? For example, 1800 to be turned into 360, 900 turned into 180, etc?

1 Answers1

4

Method 1

Subtract 360 till you reach the range you desire. (by antman from the comments)

Method 2

If programming codes can be used then the modulus operator ' % ' can be used to find the remainder.

Example:
900 % 360=180
General form:
$x$%360=[value]

Modulus operator gives the remainder when we divide the degrees by 360.

Reason

After a complete rotation (covering 360 degrees) we come back to zero.

Klosew
  • 713