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

31 lines
47 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 L,b as x,c as dn,d as cn}from"./chunk-C6Y3PRDH.js";import{a as E}from"./chunk-LI57NJAL.js";import{a as Rn}from"./chunk-3NARV6MR.js";import{a as T}from"./chunk-P44SUSQU.js";import{a as H,b as f}from"./chunk-FUATUYJ3.js";import{e as M}from"./chunk-ODUTJJQ5.js";function b(n,o,c,y){this.x=T(n,0),this.y=T(o,0),this.z=T(c,0),this.w=T(y,0)}b.fromElements=function(n,o,c,y,p){return M(p)?(p.x=n,p.y=o,p.z=c,p.w=y,p):new b(n,o,c,y)};b.fromColor=function(n,o){return f.typeOf.object("color",n),M(o)?(o.x=n.red,o.y=n.green,o.z=n.blue,o.w=n.alpha,o):new b(n.red,n.green,n.blue,n.alpha)};b.clone=function(n,o){if(M(n))return M(o)?(o.x=n.x,o.y=n.y,o.z=n.z,o.w=n.w,o):new b(n.x,n.y,n.z,n.w)};b.packedLength=4;b.pack=function(n,o,c){return f.typeOf.object("value",n),f.defined("array",o),c=T(c,0),o[c++]=n.x,o[c++]=n.y,o[c++]=n.z,o[c]=n.w,o};b.unpack=function(n,o,c){return f.defined("array",n),o=T(o,0),M(c)||(c=new b),c.x=n[o++],c.y=n[o++],c.z=n[o++],c.w=n[o],c};b.packArray=function(n,o){f.defined("array",n);let c=n.length,y=c*4;if(!M(o))o=new Array(y);else{if(!Array.isArray(o)&&o.length!==y)throw new H("If result is a typed array, it must have exactly array.length * 4 elements");o.length!==y&&(o.length=y)}for(let p=0;p<c;++p)b.pack(n[p],o,p*4);return o};b.unpackArray=function(n,o){if(f.defined("array",n),f.typeOf.number.greaterThanOrEquals("array.length",n.length,4),n.length%4!==0)throw new H("array length must be a multiple of 4.");let c=n.length;M(o)?o.length=c/4:o=new Array(c/4);for(let y=0;y<c;y+=4){let p=y/4;o[p]=b.unpack(n,y,o[p])}return o};b.fromArray=b.unpack;b.maximumComponent=function(n){return f.typeOf.object("cartesian",n),Math.max(n.x,n.y,n.z,n.w)};b.minimumComponent=function(n){return f.typeOf.object("cartesian",n),Math.min(n.x,n.y,n.z,n.w)};b.minimumByComponent=function(n,o,c){return f.typeOf.object("first",n),f.typeOf.object("second",o),f.typeOf.object("result",c),c.x=Math.min(n.x,o.x),c.y=Math.min(n.y,o.y),c.z=Math.min(n.z,o.z),c.w=Math.min(n.w,o.w),c};b.maximumByComponent=function(n,o,c){return f.typeOf.object("first",n),f.typeOf.object("second",o),f.typeOf.object("result",c),c.x=Math.max(n.x,o.x),c.y=Math.max(n.y,o.y),c.z=Math.max(n.z,o.z),c.w=Math.max(n.w,o.w),c};b.clamp=function(n,o,c,y){f.typeOf.object("value",n),f.typeOf.object("min",o),f.typeOf.object("max",c),f.typeOf.object("result",y);let p=E.clamp(n.x,o.x,c.x),O=E.clamp(n.y,o.y,c.y),e=E.clamp(n.z,o.z,c.z),h=E.clamp(n.w,o.w,c.w);return y.x=p,y.y=O,y.z=e,y.w=h,y};b.magnitudeSquared=function(n){return f.typeOf.object("cartesian",n),n.x*n.x+n.y*n.y+n.z*n.z+n.w*n.w};b.magnitude=function(n){return Math.sqrt(b.magnitudeSquared(n))};var yn=new b;b.distance=function(n,o){return f.typeOf.object("left",n),f.typeOf.object("right",o),b.subtract(n,o,yn),b.magnitude(yn)};b.distanceSquared=function(n,o){return f.typeOf.object("left",n),f.typeOf.object("right",o),b.subtract(n,o,yn),b.magnitudeSquared(yn)};b.normalize=function(n,o){f.typeOf.object("cartesian",n),f.typeOf.object("result",o);let c=b.magnitude(n);if(o.x=n.x/c,o.y=n.y/c,o.z=n.z/c,o.w=n.w/c,isNaN(o.x)||isNaN(o.y)||isNaN(o.z)||isNaN(o.w))throw new H("normalized result is not a number");return o};b.dot=function(n,o){return f.typeOf.object("left",n),f.typeOf.object("right",o),n.x*o.x+n.y*o.y+n.z*o.z+n.w*o.w};b.multiplyComponents=function(n,o,c){return f.typeOf.object("left",n),f.typeOf.object("right",o),f.typeOf.object("result",c),c.x=n.x*o.x,c.y=n.y*o.y,c.z=n.z*o.z,c.w=n.w*o.w,c};b.divideComponents=function(n,o,c){return f.typeOf.object("left",n),f.typeOf.object("right",o),f.typeOf.object("result",c),c.x=n.x/o.x,c.y=n.y/o.y,c.z=n.z/o.z,c.w=n.w/o.w,c};b.add=function(n,o,c){return f.typeOf.object("left",n),f.typeOf.object("right",o),f.typeOf.object("result",c),c.x=n.x+o.x,c.y=n.y+o.y,c.z=n.z+o.z,c.w=n.w+o.w,c};b.subtract=function(n,o,c){return f.typeOf.object("left",n),f.typeOf.object("right",o),f.typeOf.object("result",c),c.x=n.x-o.x,c.y=n.y-o.y,c.z=n.z-o.z,c.w=n.w-o.w,c};b.multiplyByScalar=function(n,o,c){return f.typeOf.object("cartesian",n),f.typeOf.number("scalar",o),f.typeOf.object("result",c),c.x=n.x*o,c.y=n
(${this[1]}, ${this[5]}, ${this[9]}, ${this[13]})
(${this[2]}, ${this[6]}, ${this[10]}, ${this[14]})
(${this[3]}, ${this[7]}, ${this[11]}, ${this[15]})`};var ho=t;function q(n,o,c,y){this.west=T(n,0),this.south=T(o,0),this.east=T(c,0),this.north=T(y,0)}Object.defineProperties(q.prototype,{width:{get:function(){return q.computeWidth(this)}},height:{get:function(){return q.computeHeight(this)}}});q.packedLength=4;q.pack=function(n,o,c){return f.typeOf.object("value",n),f.defined("array",o),c=T(c,0),o[c++]=n.west,o[c++]=n.south,o[c++]=n.east,o[c]=n.north,o};q.unpack=function(n,o,c){return f.defined("array",n),o=T(o,0),M(c)||(c=new q),c.west=n[o++],c.south=n[o++],c.east=n[o++],c.north=n[o],c};q.computeWidth=function(n){f.typeOf.object("rectangle",n);let o=n.east,c=n.west;return o<c&&(o+=E.TWO_PI),o-c};q.computeHeight=function(n){return f.typeOf.object("rectangle",n),n.north-n.south};q.fromDegrees=function(n,o,c,y,p){return n=E.toRadians(T(n,0)),o=E.toRadians(T(o,0)),c=E.toRadians(T(c,0)),y=E.toRadians(T(y,0)),M(p)?(p.west=n,p.south=o,p.east=c,p.north=y,p):new q(n,o,c,y)};q.fromRadians=function(n,o,c,y,p){return M(p)?(p.west=T(n,0),p.south=T(o,0),p.east=T(c,0),p.north=T(y,0),p):new q(n,o,c,y)};q.fromCartographicArray=function(n,o){f.defined("cartographics",n);let c=Number.MAX_VALUE,y=-Number.MAX_VALUE,p=Number.MAX_VALUE,O=-Number.MAX_VALUE,e=Number.MAX_VALUE,h=-Number.MAX_VALUE;for(let d=0,j=n.length;d<j;d++){let R=n[d];c=Math.min(c,R.longitude),y=Math.max(y,R.longitude),e=Math.min(e,R.latitude),h=Math.max(h,R.latitude);let m=R.longitude>=0?R.longitude:R.longitude+E.TWO_PI;p=Math.min(p,m),O=Math.max(O,m)}return y-c>O-p&&(c=p,y=O,y>E.PI&&(y=y-E.TWO_PI),c>E.PI&&(c=c-E.TWO_PI)),M(o)?(o.west=c,o.south=e,o.east=y,o.north=h,o):new q(c,e,y,h)};q.fromCartesianArray=function(n,o,c){f.defined("cartesians",n),o=T(o,dn.WGS84);let y=Number.MAX_VALUE,p=-Number.MAX_VALUE,O=Number.MAX_VALUE,e=-Number.MAX_VALUE,h=Number.MAX_VALUE,d=-Number.MAX_VALUE;for(let j=0,R=n.length;j<R;j++){let m=o.cartesianToCartographic(n[j]);y=Math.min(y,m.longitude),p=Math.max(p,m.longitude),h=Math.min(h,m.latitude),d=Math.max(d,m.latitude);let A=m.longitude>=0?m.longitude:m.longitude+E.TWO_PI;O=Math.min(O,A),e=Math.max(e,A)}return p-y>e-O&&(y=O,p=e,p>E.PI&&(p=p-E.TWO_PI),y>E.PI&&(y=y-E.TWO_PI)),M(c)?(c.west=y,c.south=h,c.east=p,c.north=d,c):new q(y,h,p,d)};q.clone=function(n,o){if(M(n))return M(o)?(o.west=n.west,o.south=n.south,o.east=n.east,o.north=n.north,o):new q(n.west,n.south,n.east,n.north)};q.equalsEpsilon=function(n,o,c){return c=T(c,0),n===o||M(n)&&M(o)&&Math.abs(n.west-o.west)<=c&&Math.abs(n.south-o.south)<=c&&Math.abs(n.east-o.east)<=c&&Math.abs(n.north-o.north)<=c};q.prototype.clone=function(n){return q.clone(this,n)};q.prototype.equals=function(n){return q.equals(this,n)};q.equals=function(n,o){return n===o||M(n)&&M(o)&&n.west===o.west&&n.south===o.south&&n.east===o.east&&n.north===o.north};q.prototype.equalsEpsilon=function(n,o){return q.equalsEpsilon(this,n,o)};q.validate=function(n){f.typeOf.object("rectangle",n);let o=n.north;f.typeOf.number.greaterThanOrEquals("north",o,-E.PI_OVER_TWO),f.typeOf.number.lessThanOrEquals("north",o,E.PI_OVER_TWO);let c=n.south;f.typeOf.number.greaterThanOrEquals("south",c,-E.PI_OVER_TWO),f.typeOf.number.lessThanOrEquals("south",c,E.PI_OVER_TWO);let y=n.west;f.typeOf.number.greaterThanOrEquals("west",y,-Math.PI),f.typeOf.number.lessThanOrEquals("west",y,Math.PI);let p=n.east;f.typeOf.number.greaterThanOrEquals("east",p,-Math.PI),f.typeOf.number.lessThanOrEquals("east",p,Math.PI)};q.southwest=function(n,o){return f.typeOf.object("rectangle",n),M(o)?(o.longitude=n.west,o.latitude=n.south,o.height=0,o):new x(n.west,n.south)};q.northwest=function(n,o){return f.typeOf.object("rectangle",n),M(o)?(o.longitude=n.west,o.latitude=n.north,o.height=0,o):new x(n.west,n.north)};q.northeast=function(n,o){return f.typeOf.object("rectangle",n),M(o)?(o.longitude=n.east,o.latitude=n.north,o.height=0,o):new x(n.east,n.north)};q.southeast=function(n,o){return f.typeOf.object("rectangle",n),M(o)?(o.longitude=n.east,o.latitude=n.south,o.height=0,o):new x(n.east,n.south)};q.center=function(n,o){f.typeOf.object("rectangle",n);let c=n.east,y
(${this[1]}, ${this[3]})`};var Vo=z;export{pn as a,ho as b,mo as c,J as d,Vo as e};