Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

locationTransform.e2d22cb6.js 1.0KB

pirms 7 mēnešiem
1
  1. const h=3.141592653589793,u=6378245,i=.006693421622965943;function n(r,s){var M=-100+2*r+3*s+.2*s*s+.1*r*s+.2*Math.sqrt(Math.abs(r));return M+=(20*Math.sin(6*r*h)+20*Math.sin(2*r*h))*2/3,M+=(20*Math.sin(s*h)+40*Math.sin(s/3*h))*2/3,M+=(160*Math.sin(s/12*h)+320*Math.sin(s*h/30))*2/3,M}function c(r,s){var M=300+r+2*s+.1*r*r+.1*r*s+.1*Math.sqrt(Math.abs(r));return M+=(20*Math.sin(6*r*h)+20*Math.sin(2*r*h))*2/3,M+=(20*Math.sin(r*h)+40*Math.sin(r/3*h))*2/3,M+=(150*Math.sin(r/12*h)+300*Math.sin(r/30*h))*2/3,M}function b(r,s){return r<72.004||r>137.8347||s<.8293||s>55.8271||!1}function j(r,s){if(b(r,s))return[r,s];var M=n(r-105,s-35),e=c(r-105,s-35),o=s/180*h,t=Math.sin(o);t=1-i*t*t;var v=Math.sqrt(t);M=M*180/(u*(1-i)/(t*v)*h),e=e*180/(u/v*Math.cos(o)*h);var f=s+M,a=r+e;return[a,f]}function q(r,s){if(b(r,s))return[r,s];var M=n(r-105,s-35),e=c(r-105,s-35),o=s/180*h,t=Math.sin(o);t=1-i*t*t;var v=Math.sqrt(t);M=M*180/(u*(1-i)/(t*v)*h),e=e*180/(u/v*Math.cos(o)*h);var f=s+M,a=r+e;return[r*2-a,s*2-f]}export{q as g,j as w};