/* 2020-9-22 15:23:26 | 版权所有 军懋国兴  */
define(["./when-cbf8cd21","./Check-35e1a91d","./Math-69007a69","./Cartesian2-43e3a3be","./Transforms-2d1ac5ec","./RuntimeError-f4c64df1","./WebGLConstants-95ceb4e9","./ComponentDatatype-607c9a0c","./GeometryAttribute-2303bbfb","./GeometryAttributes-90846c5f"],function(r,a,e,i,o,t,n,c,u,y){"use strict";function d(){this._workerName="createPlaneOutlineGeometry"}d.packedLength=0,d.pack=function(e,t){return a.Check.defined("value",e),a.Check.defined("array",t),t},d.unpack=function(e,t,n){return a.Check.defined("array",e),r.defined(n)?n:new d};var s=new i.Cartesian3(-.5,-.5,0),f=new i.Cartesian3(.5,.5,0);return d.createGeometry=function(){var e=new y.GeometryAttributes,t=new Uint16Array(8),n=new Float64Array(12);return n[0]=s.x,n[1]=s.y,n[2]=s.z,n[3]=f.x,n[4]=s.y,n[5]=s.z,n[6]=f.x,n[7]=f.y,n[8]=s.z,n[9]=s.x,n[10]=f.y,n[11]=s.z,e.position=new u.GeometryAttribute({componentDatatype:c.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 u.Geometry({attributes:e,indices:t,primitiveType:u.PrimitiveType.LINES,boundingSphere:new o.BoundingSphere(i.Cartesian3.ZERO,Math.sqrt(2))})},function(e,t){return r.defined(t)&&(e=d.unpack(e,t)),d.createGeometry(e)}});