I'm trying to find the simplest way to convert a trig angle measurement (between 180 and -180 degrees (or pi and -pi radians)) originating from the positive side of the x axis) to a standard compass bearing (between 0 and 360 degrees originating clockwise from the positive y axis).
I can't come up with a formula or algorithm that works with any angle value.
Thanks in advance for your help.
I can't come up with a formula or algorithm that works with any angle value.
Thanks in advance for your help.