As a proof of concept, I want to create an application that retrieve the current coordinates, calculate the direction towards an another point and, using compass, rotate an arrow image to direct to that point in space.
I know how to retrieve current coordinate and to rotate the image through CGAffineTransformMakeRotation, but I haven't find a formula to calculate the correct angle.
Any hints?