1
$\begingroup$

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?

  • 0
    If $\theta$ is the angle anticlockwise from east in degrees, then the angle clockwise from north is $90^\circ - \theta$.2012-06-02

1 Answers 1

0

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.