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!

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!
