1
Surpriseplus
2022-09-16 8d1a91c23df335b090e38b2edd15203aa3b03da9
1
define(["./when-cbf8cd21","./Check-35e1a91d","./Math-e66fad2a","./Rectangle-53325d53","./WebGLConstants-95ceb4e9","./PixelFormat-d198afce","./Transforms-00c25a19","./RuntimeError-f4c64df1","./ComponentDatatype-7ee14e67","./GeometryAttribute-0b3418e6","./GeometryAttributes-90846c5f"],function(r,e,t,a,n,i,o,c,u,y,m){"use strict";function s(){this._workerName="createPlaneOutlineGeometry"}s.packedLength=0,s.pack=function(e,t){return t},s.unpack=function(e,t,n){return r.defined(n)?n:new s};var p=new a.Cartesian3(-.5,-.5,0),f=new a.Cartesian3(.5,.5,0);return s.createGeometry=function(){var e=new m.GeometryAttributes,t=new Uint16Array(8),n=new Float64Array(12);return n[0]=p.x,n[1]=p.y,n[2]=p.z,n[3]=f.x,n[4]=p.y,n[5]=p.z,n[6]=f.x,n[7]=f.y,n[8]=p.z,n[9]=p.x,n[10]=f.y,n[11]=p.z,e.position=new y.GeometryAttribute({componentDatatype:u.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:n}),t[0]=0,t[1]=1,t[2]=1,t[3]=2,t[4]=2,t[5]=3,t[6]=3,t[7]=0,new y.Geometry({attributes:e,indices:t,primitiveType:y.PrimitiveType.LINES,boundingSphere:new o.BoundingSphere(a.Cartesian3.ZERO,Math.sqrt(2))})},function(e,t){return r.defined(t)&&(e=s.unpack(e,t)),s.createGeometry(e)}});