You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
325 B
2 lines
325 B
|
2 days ago
|
function t(t,a,n,h){const s=t=>t*Math.PI/180,M=s(n-t),i=s(h-a),r=Math.sin(M/2)*Math.sin(M/2)+Math.cos(s(t))*Math.cos(s(n))*Math.sin(i/2)*Math.sin(i/2);return 12742*Math.atan2(Math.sqrt(r),Math.sqrt(1-r))}function a(t){return!Number.isFinite(t)||t<0?"--":t<1?`${Math.round(1e3*t)}m`:`${t.toFixed(1)}km`}export{a as f,t as h};
|