Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I got angles in mathematical sense. This means 0° is east and the rotation is anti-clockwise.

I need to convert them to 0° is north plus rotation clockwise.

The first one is an easy offset but how can I build up an algorythm taking into account to rotation direction?

share|improve this question
I have thought about getting X/Y in a circle with radius=1. But I dont know which angle functions will then return in the correct new system when going back from X/Y to the angle. –  ZoolWay Feb 24 '12 at 18:31
If $\theta$ is the angle anticlockwise from east in degrees, then the angle clockwise from north is $90^\circ - \theta$. –  Rahul Jun 2 '12 at 0:37
+1 fuer "algorythm" –  Farticle Pilter Oct 1 '13 at 3:43
add comment

1 Answer 1

up vote 0 down vote accepted

Okay, maybe asking it helped me ;)

How does this look:

x = cos(mathAngle) y = sin(mathAngle)

otherAngle = arctan(x / y)

The test values look nice to me. Switching x and y for arctan changes the rotation direction.

share|improve this answer
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.