/** * Cesium - https://github.com/CesiumGS/cesium * * Copyright 2011-2020 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/master/LICENSE.md for full licensing details. */ define(["./when-60b00257","./Check-4274a1fd","./Math-9d37f659","./Cartesian2-2951f601","./WebGLConstants-779bf0bc","./AttributeCompression-a0720a96","./IndexDatatype-527cbd94","./createTaskProcessorWorker"],function(a,r,W,B,e,z,H,n){"use strict";var O=32767,Y=new B.Cartographic,Z=new B.Cartesian3;var j=new B.Rectangle,q=new B.Ellipsoid,J=new B.Cartesian3,K={min:void 0,max:void 0};var Q=new B.Cartesian3,V=new B.Cartesian3,X=new B.Cartesian3,$=new B.Cartesian3,aa=new B.Cartesian3;return n(function(a,r){var e=new Uint16Array(a.positions),n=new Uint16Array(a.widths),t=new Uint32Array(a.counts),i=new Uint16Array(a.batchIds);!function(a){a=new Float64Array(a);var r=0;K.min=a[r++],K.max=a[r++],B.Rectangle.unpack(a,r,j),r+=B.Rectangle.packedLength,B.Ellipsoid.unpack(a,r,q),r+=B.Ellipsoid.packedLength,B.Cartesian3.unpack(a,r,J)}(a.packedBuffer);var s,u=q,c=J,o=function(a,r,e,n,t){var i=a.length/3,s=a.subarray(0,i),u=a.subarray(i,2*i),c=a.subarray(2*i,3*i);z.AttributeCompression.zigZagDeltaDecode(s,u,c);for(var o=new Float64Array(a.length),f=0;f