[Template] formula distance between two points on the ball

Keep it formula.

Original link: https: //blog.csdn.net/qq_43472263/article/details/101635949

公式:dis(A,B) = R*arccos(cos(wA)*cos(wB)*cos(jB-JA)+sin(wA)*sin(wB));

(WA indicates the latitude of the point A, the point A jA represents precision, B similar), note that the positive direction is a default 'N', 'E';

Coordinates wA (a + b / 60.0 + c / 3600.0) * flag / 180 * PI (a, b, c = a value of latitude and longitude, respectively, flag is positive (1 or -1), PI of π,

Guess you like

Origin www.cnblogs.com/xiaobuxie/p/11621735.html