1 line
1.1 KiB
JavaScript
1 line
1.1 KiB
JavaScript
(wx.webpackJsonp=wx.webpackJsonp||[]).push([[3160],{7353:function(a){a.exports=function(a,t){var h=a,M=t,o=h[0],r=h[1],p=h[2],w=M[0],s=M[1],d=M[2],e=(o+w)/2,n=(Math.sqrt(Math.pow(r,2)+Math.pow(p,2))+Math.sqrt(Math.pow(s,2)+Math.pow(d,2)))/2,c=(1-Math.sqrt(Math.pow(n,7)/(Math.pow(n,7)+Math.pow(25,7))))/2,g=r*(1+c),q=s*(1+c),u=Math.sqrt(Math.pow(g,2)+Math.pow(p,2)),i=Math.sqrt(Math.pow(q,2)+Math.pow(d,2)),v=(u+i)/2,b=rad2deg(Math.atan2(p,g));b<0&&(b+=360);var f=rad2deg(Math.atan2(d,q));f<0&&(f+=360);var x=Math.abs(b-f)>180?(b+f+360)/2:(b+b)/2,k=1-.17*Math.cos(deg2rad(x-30))+.24*Math.cos(deg2rad(2*x))+.32*Math.cos(deg2rad(3*x+6))-.2*Math.cos(deg2rad(4*x-63)),I=f-b;Math.abs(I)>180&&(f<=b?I+=360:I-=360);var J=w-o,P=i-u;I=2*Math.sqrt(u*i)*Math.sin(deg2rad(I)/2);var j=1+.015*Math.pow(e-50,2)/Math.sqrt(20+Math.pow(e-50,2)),l=1+.045*v,m=1+.015*v*k,y=30*Math.exp(-Math.pow((x-275)/25,2)),z=-(2*Math.sqrt(Math.pow(v,7)/(Math.pow(v,7)+Math.pow(25,7))))*Math.sin(2*deg2rad(y));return Math.sqrt(Math.pow(J/(1*j),2)+Math.pow(P/(1*l),2)+Math.pow(I/(1*m),2)+z*(P/(1*l))*(I/(1*m)));function rad2deg(a){return 360*a/(2*Math.PI)}function deg2rad(a){return 2*Math.PI*a/360}}}}]); |