Direction between two coordinates

231 views
Skip to first unread message

Umar Sharif

unread,
May 21, 2015, 5:32:51 AM5/21/15
to cesiu...@googlegroups.com
I am trying to calculate angle/direction between 2 lat/lon using 

Cartesian3.angleBetween(left, right)

I guess this does not return angle according to North, South, East or West, but according to sphere of globe.

I need to find angle between 2 points according to North, so that I could know the object's heading attribute from one point to another.


bobac...@gmail.com

unread,
May 21, 2015, 9:56:13 AM5/21/15
to cesiu...@googlegroups.com
Hello,
you can see this url : http://williams.best.vwh.net/avform.htm#Crs
It gives lots of flight formulas

Mike LP

unread,
May 22, 2015, 11:20:08 AM5/22/15
to cesiu...@googlegroups.com, bobac...@gmail.com, bobac...@gmail.com
http://www.movable-type.co.uk/scripts/latlong.html  provides a great library for calculating bearings between lat/lon pairs.

I created a git repo a while ago to include in my projects.
https://github.com/NautSoft/latlonjs
Reply all
Reply to author
Forward
0 new messages