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.
abdou
2
Hello,
you can see this url : http://williams.best.vwh.net/avform.htm#Crs
It gives lots of flight formulas
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