NuclearDispersionSystem/ant-design-vue-jeecg/public/Cesium/Workers/chunk-AJGH25BB.js

27 lines
9.7 KiB
Java
Raw Normal View History

2023-09-18 11:40:16 +08:00
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.109
*
* Copyright 2011-2022 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
import{a as N}from"./chunk-6A32WNKQ.js";import{a as ot}from"./chunk-GH2M3QEY.js";import{a as K,b as B}from"./chunk-MUMMGJJL.js";import{a as k}from"./chunk-RUSF25XT.js";import{a as F}from"./chunk-Y5NK5HSS.js";import{a as nt}from"./chunk-67OQHZOZ.js";import{a as et}from"./chunk-FUN3J34G.js";import{b as Y,c as Q,d as H}from"./chunk-A4RD4IQP.js";import{f as j}from"./chunk-NNIY7VTE.js";import{d as A}from"./chunk-5EDTRNG5.js";import{a as q}from"./chunk-IO6LETQ6.js";import{a as b,b as W,c as tt,d as z}from"./chunk-C6Y3PRDH.js";import{a as S}from"./chunk-LI57NJAL.js";import{a as X}from"./chunk-P44SUSQU.js";import{e as w}from"./chunk-ODUTJJQ5.js";function _(){this._array=[],this._offset=0,this._length=0}Object.defineProperties(_.prototype,{length:{get:function(){return this._length}}});_.prototype.enqueue=function(n){this._array.push(n),this._length++};_.prototype.dequeue=function(){if(this._length===0)return;let n=this._array,s=this._offset,c=n[s];return n[s]=void 0,s++,s>10&&s*2>n.length&&(this._array=n.slice(s),s=0),this._offset=s,this._length--,c};_.prototype.peek=function(){if(this._length!==0)return this._array[this._offset]};_.prototype.contains=function(n){return this._array.indexOf(n)!==-1};_.prototype.clear=function(){this._array.length=this._offset=this._length=0};_.prototype.sort=function(n){this._offset>0&&(this._array=this._array.slice(this._offset),this._offset=0),this._array.sort(n)};var J=_;var x={};x.computeHierarchyPackedLength=function(n,s){let c=0,f=[n];for(;f.length>0;){let u=f.pop();if(!w(u))continue;c+=2;let r=u.positions,t=u.holes;if(w(r)&&r.length>0&&(c+=r.length*s.packedLength),w(t)){let e=t.length;for(let o=0;o<e;++o)f.push(t[o])}}return c};x.packPolygonHierarchy=function(n,s,c,f){let u=[n];for(;u.length>0;){let r=u.pop();if(!w(r))continue;let t=r.positions,e=r.holes;if(s[c++]=w(t)?t.length:0,s[c++]=w(e)?e.length:0,w(t)){let o=t.length;for(let i=0;i<o;++i,c+=f.packedLength)f.pack(t[i],s,c)}if(w(e)){let o=e.length;for(let i=0;i<o;++i)u.push(e[i])}}return c};x.unpackPolygonHierarchy=function(n,s,c){let f=n[s++],u=n[s++],r=new Array(f),t=u>0?new Array(u):void 0;for(let e=0;e<f;++e,s+=c.packedLength)r[e]=c.unpack(n,s);for(let e=0;e<u;++e)t[e]=x.unpackPolygonHierarchy(n,s,c),s=t[e].startingIndex,delete t[e].startingIndex;return{positions:r,holes:t,startingIndex:s}};var M=new A;function rt(n,s,c,f){return A.subtract(s,n,M),A.multiplyByScalar(M,c/f,M),A.add(n,M,M),[M.x,M.y]}var G=new b;function ut(n,s,c,f){return b.subtract(s,n,G),b.multiplyByScalar(G,c/f,G),b.add(n,G,G),[G.x,G.y,G.z]}x.subdivideLineCount=function(n,s,c){let u=b.distance(n,s)/c,r=Math.max(0,Math.ceil(S.log2(u)));return Math.pow(2,r)};var Z=new W,$=new W,ht=new W,lt=new b,it=new F;x.subdivideRhumbLineCount=function(n,s,c,f){let u=n.cartesianToCartographic(s,Z),r=n.cartesianToCartographic(c,$),e=new F(u,r,n).surfaceDistance/f,o=Math.max(0,Math.ceil(S.log2(e)));return Math.pow(2,o)};x.subdivideTexcoordLine=function(n,s,c,f,u,r){let t=x.subdivideLineCount(c,f,u),e=A.distance(n,s),o=e/t,i=r;i.length=t*2;let a=0;for(let l=0;l<t;l++){let d=rt(n,s,l*o,e);i[a++]=d[0],i[a++]=d[1]}return i};x.subdivideLine=function(n,s,c,f){let u=x.subdivideLineCount(n,s,c),r=b.distance(n,s),t=r/u;w(f)||(f=[]);let e=f;e.length=u*3;let o=0;for(let i=0;i<u;i++){let a=ut(n,s,i*t,r);e[o++]=a[0],e[o++]=a[1],e[o++]=a[2]}return e};x.subdivideTexcoordRhumbLine=function(n,s,c,f,u,r,t){let e=c.cartesianToCartographic(f,Z),o=c.cartesianToCartographic(u,$);it.setEndPoints(e,o);let i=it.surfaceDistance/r,a=Math.max(0,Math.ceil(S.log2(i))),l=Math.pow(2,a),d=A.distance(n,s),m=d/l,p=t;p.length=l*2;let g=0;for(let h=0;h<l;h++){let y=rt(n,s,h*m,d);p[g++]=y[0],p[g++]=y[1]}return p};x.subdivideRhumbLine=function(n,s,c,f,u){let r=n.cartesianToCartographic(s,Z),t=n.cartesianToCartographic(c,$),e=new F(r,t,n),o=e.surfaceDistance/f,i=Math.max(0,Math.ceil(S.log2(o))),a=Math.pow(2,i),l=e.surfaceDistance/a;w(u)||(u=[]);let d=u;d.length=a*3;let m=0;for(let p=0;p<a;p++){let g=e.interpolateUsingSurfaceDistance(p*l,ht),h=n.cartographicToCartesian(g,lt);d[m++]=h.x,d[m++]=h.y,d[m++]=h.z}return d};var