天天看點

方位角計算

轉載來源:

http://space.itpub.net/2052/viewspace-166537

今天記錄方位角的計算。

計算大圓航線從初始點位置的方位角是:

tc1=mod(atan2(sin(lon1-lon2)*cos(lat2), cos(lat1)*sin(lat2)-sin(lat1)*cos(lat2)*cos(lon1-lon2)), 2*pi)

計算恒向線的方位角:

tc= mod(atan2(lon1-lon2,log(tan(lat2/2+pi/4)/tan(lat1/2+pi/4))),2*pi)