calculating heading with corelocation

It’s fairly easy to get the heading of the user as they move in an iPhone app. More difficult however, is how to find the heading between two specific points that the user may or may not be at. In my case, this was in order to let the user pick a specific point, walk away from it, then have the device point the user back towards the point. I decided to tackle the problem using some vector mathematics.