Stumped with a bit of geographical maths

Soldato
Joined
9 Jun 2006
Posts
2,642
Hi all,

I'm having a bit of trouble with trying to code up something for a personal project.

I want to work out the angle between true north and some arbitrary point, with my current location being the origin. See picture below. My issue is, I'm working with latitude and longtitude units, which aren't linear 2D coordinates. If I was working on a 2D linear plane, I could just do a dot product of two vectors and it would be easy! Also I don't know what north is, in terms of longtitude and latitude.

My maths is fairly weak, I don't want to code up something that is unnecessarily complex. I'd appreciate it if someone could help!

 
Cn't remember how to do this anymore, however, I would recommend looking into getting some CGP books as they took me through my GCSE's

I don't think GCSEs covered working out angles with a coordinate system where the units are not linear. I think you are referring to dot product of two vectors in cartesian space, which I am familiar with, but not applicable to this as far as I am aware.
 
Back
Top Bottom