Files
gofly-platform-services/zlt-web/yingyan/public/cesium/Workers/chunk-RGFEE67W.js
T

30 lines
27 KiB
JavaScript
Raw Normal View History

2025-12-26 19:50:46 +08:00
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.136.0
*
* 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 z1}from"./chunk-SY2GINYP.js";import{a as W,b as u,c as j1}from"./chunk-QDJTHWTA.js";import{a as D}from"./chunk-2YWR3G22.js";import{a as g,b as f}from"./chunk-HTSQLHXI.js";import{e as S}from"./chunk-JDAHMWM5.js";function j(n,o,c,y){this.x=n??0,this.y=o??0,this.z=c??0,this.w=y??0}j.fromElements=function(n,o,c,y,p){return S(p)?(p.x=n,p.y=o,p.z=c,p.w=y,p):new j(n,o,c,y)};j.fromColor=function(n,o){return f.typeOf.object("color",n),S(o)?(o.x=n.red,o.y=n.green,o.z=n.blue,o.w=n.alpha,o):new j(n.red,n.green,n.blue,n.alpha)};j.clone=function(n,o){if(S(n))return S(o)?(o.x=n.x,o.y=n.y,o.z=n.z,o.w=n.w,o):new j(n.x,n.y,n.z,n.w)};j.packedLength=4;j.pack=function(n,o,c){return f.typeOf.object("value",n),f.defined("array",o),c=c??0,o[c++]=n.x,o[c++]=n.y,o[c++]=n.z,o[c]=n.w,o};j.unpack=function(n,o,c){return f.defined("array",n),o=o??0,S(c)||(c=new j),c.x=n[o++],c.y=n[o++],c.z=n[o++],c.w=n[o],c};j.packArray=function(n,o){f.defined("array",n);let c=n.length,y=c*4;if(!S(o))o=new Array(y);else{if(!Array.isArray(o)&&o.length!==y)throw new g("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)j.pack(n[p],o,p*4);return o};j.unpackArray=function(n,o){if(f.defined("array",n),f.typeOf.number.greaterThanOrEquals("array.length",n.length,4),n.length%4!==0)throw new g("array length must be a multiple of 4.");let c=n.length;S(o)?o.length=c/4:o=new Array(c/4);for(let y=0;y<c;y+=4){let p=y/4;o[p]=j.unpack(n,y,o[p])}return o};j.fromArray=j.unpack;j.maximumComponent=function(n){return f.typeOf.object("cartesian",n),Math.max(n.x,n.y,n.z,n.w)};j.minimumComponent=function(n){return f.typeOf.object("cartesian",n),Math.min(n.x,n.y,n.z,n.w)};j.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};j.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};j.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=D.clamp(n.x,o.x,c.x),w=D.clamp(n.y,o.y,c.y),b=D.clamp(n.z,o.z,c.z),z=D.clamp(n.w,o.w,c.w);return y.x=p,y.y=w,y.z=b,y.w=z,y};j.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};j.magnitude=function(n){return Math.sqrt(j.magnitudeSquared(n))};var l=new j;j.distance=function(n,o){return f.typeOf.object("left",n),f.typeOf.object("right",o),j.subtract(n,o,l),j.magnitude(l)};j.distanceSquared=function(n,o){return f.typeOf.object("left",n),f.typeOf.object("right",o),j.subtract(n,o,l),j.magnitudeSquared(l)};j.normalize=function(n,o){f.typeOf.object("cartesian",n),f.typeOf.object("result",o);let c=j.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 g("normalized result is not a number");return o};j.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};j.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};j.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};j.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};j.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};j.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.y*o,c.z=n.z*o,c.w=n.w*o,c};j.divideByScalar=function(n,o,c){retu
(${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 m1=O;export{r as a,m1 as b};