Newer
Older
smartwell_front_dz / XLJCYJ / mars3d-cesium / Workers / chunk-SMROTTNJ.js
wangxitong on 8 Jul 2024 1 KB 达州变更
/**
 * @license
 * Cesium - https://github.com/CesiumGS/cesium
 * Version 1.109.1
 *
 * 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 c}from"./chunk-WADCMYQO.js";import{b as t}from"./chunk-EYEHMX6X.js";import{e as g}from"./chunk-BWKFPVR5.js";function f(){this.high=c.clone(c.ZERO),this.low=c.clone(c.ZERO)}f.encode=function(e,o){let n;return t.typeOf.number("value",e),g(o)||(o={high:0,low:0}),e>=0?(n=65536*Math.floor(e/65536),o.high=n,o.low=e-n):(n=65536*Math.floor(-e/65536),o.high=-n,o.low=e+n),o};var e={high:0,low:0};f.fromCartesian=function(o,n){t.typeOf.object("cartesian",o),g(n)||(n=new f);let r=n.high,h=n.low;return f.encode(o.x,e),r.x=e.high,h.x=e.low,f.encode(o.y,e),r.y=e.high,h.y=e.low,f.encode(o.z,e),r.z=e.high,h.z=e.low,n};var m=new f;f.writeElements=function(e,o,n){t.defined("cartesianArray",o),t.typeOf.number("index",n),t.typeOf.number.greaterThanOrEquals("index",n,0),f.fromCartesian(e,m);let r=m.high,h=m.low;o[n]=r.x,o[n+1]=r.y,o[n+2]=r.z,o[n+3]=h.x,o[n+4]=h.y,o[n+5]=h.z};var O=f;export{O as a};