1
Surpriseplus
2022-09-16 a7e5110ef3f5fe3c9205f7d1a526b9fbbb55d826
1
define(["./AttributeCompression-8cb78525","./Matrix2-ae0e0b05","./ComponentDatatype-64cf6611","./createTaskProcessorWorker","./RuntimeError-ffc802eb","./when-e3a49219","./PixelFormat-83d70a69","./WebGLConstants-1c8239cc"],(function(a,e,r,t,n,i,o,s){"use strict";var c=32767,u=new e.Cartographic,p=new e.Cartesian3,l=new e.Rectangle,f=new e.Ellipsoid,m={min:void 0,max:void 0};return t((function(t,n){var i=new Uint16Array(t.positions);!function(a){a=new Float64Array(a);var r=0;m.min=a[r++],m.max=a[r++],e.Rectangle.unpack(a,r,l),r+=e.Rectangle.packedLength,e.Ellipsoid.unpack(a,r,f)}(t.packedBuffer);var o=l,s=f,h=m.min,C=m.max,b=i.length/3,g=i.subarray(0,b),d=i.subarray(b,2*b),w=i.subarray(2*b,3*b);a.AttributeCompression.zigZagDeltaDecode(g,d,w);for(var v=new Float64Array(i.length),k=0;k<b;++k){var y=g[k],x=d[k],A=w[k],R=r.CesiumMath.lerp(o.west,o.east,y/c),M=r.CesiumMath.lerp(o.south,o.north,x/c),D=r.CesiumMath.lerp(h,C,A/c),E=e.Cartographic.fromRadians(R,M,D,u),F=s.cartographicToCartesian(E,p);e.Cartesian3.pack(F,v,3*k)}return n.push(v.buffer),{positions:v.buffer}}))}));