zhaoxing
2023-07-26 e4f7e0c028e3866c62edde70efb177794e75c562
1
define(["./AttributeCompression-56959beb","./Cartesian2-40b13f31","./Math-87254c13","./createTaskProcessorWorker","./Check-3917d765","./when-7b580518"],function(b,g,d,a,e,r){"use strict";var w=32767,k=new g.Cartographic,v=new g.Cartesian3,y=new g.Rectangle,A=new g.Ellipsoid,M={min:void 0,max:void 0};return a(function(a,e){var r=new Uint16Array(a.positions);!function(a){a=new Float64Array(a);var e=0;M.min=a[e++],M.max=a[e++],g.Rectangle.unpack(a,2,y),e+=g.Rectangle.packedLength,g.Ellipsoid.unpack(a,e,A)}(a.packedBuffer);var t=y,n=A,i=M.min,s=M.max,o=r.length/3,c=r.subarray(0,o),u=r.subarray(o,2*o),p=r.subarray(2*o,3*o);b.AttributeCompression.zigZagDeltaDecode(c,u,p);for(var h=new Float64Array(r.length),l=0;l<o;++l){var f=c[l],m=u[l],C=p[l],f=d.CesiumMath.lerp(t.west,t.east,f/w),m=d.CesiumMath.lerp(t.south,t.north,m/w),C=d.CesiumMath.lerp(i,s,C/w),C=g.Cartographic.fromRadians(f,m,C,k),C=n.cartographicToCartesian(C,v);g.Cartesian3.pack(C,h,3*l)}return e.push(h.buffer),{positions:h.buffer}})});