1
Surpriseplus
2022-09-16 8d1a91c23df335b090e38b2edd15203aa3b03da9
1
define(["./when-cbf8cd21","./Check-35e1a91d","./Math-e66fad2a","./Rectangle-53325d53","./WebGLConstants-95ceb4e9","./PixelFormat-d198afce","./AttributeCompression-fd688b33","./createTaskProcessorWorker"],function(e,a,v,y,r,t,A,n){"use strict";var R=32767,x=new y.Cartographic,M=new y.Cartesian3,F=new y.Rectangle,D=new y.Ellipsoid,E={min:void 0,max:void 0};return n(function(e,a){var r=new Uint16Array(e.positions);!function(e){e=new Float64Array(e);var a=0;E.min=e[a++],E.max=e[a++],y.Rectangle.unpack(e,2,F),a+=y.Rectangle.packedLength,y.Ellipsoid.unpack(e,a,D)}(e.packedBuffer);var t=F,n=D,i=E.min,o=E.max,s=r.length/3,c=r.subarray(0,s),u=r.subarray(s,2*s),p=r.subarray(2*s,3*s);A.AttributeCompression.zigZagDeltaDecode(c,u,p);for(var l=new Float64Array(r.length),f=0;f<s;++f){var d=c[f],h=u[f],m=p[f],g=v.CesiumMath.lerp(t.west,t.east,d/R),C=v.CesiumMath.lerp(t.south,t.north,h/R),b=v.CesiumMath.lerp(i,o,m/R),w=y.Cartographic.fromRadians(g,C,b,x),k=n.cartographicToCartesian(w,M);y.Cartesian3.pack(k,l,3*f)}return a.push(l.buffer),{positions:l.buffer}})});