define(["./when-4bbc8319","./Matrix2-860854d4","./Transforms-0becfc64","./ComponentDatatype-8f55628c","./RuntimeError-1349fdaf","./GeometryAttribute-4590b388","./GeometryAttributes-7827a6c2","./IndexDatatype-1d853600","./VertexFormat-b8b51b88","./WallGeometryLibrary-5659a4a7","./combine-e9466e32","./WebGLConstants-508b9636","./arrayRemoveDuplicates-b1a32b72","./PolylinePipeline-55bb263f","./EllipsoidGeodesic-0a6aa4ee","./EllipsoidRhumbLine-d4d43630","./IntersectionTests-1d677ce2","./Plane-0e4269ac"],(function(e,t,n,i,a,o,r,s,l,m,u,p,c,d,y,f,g,h){"use strict";const C=new t.Cartesian3,b=new t.Cartesian3,x=new t.Cartesian3,A=new t.Cartesian3,_=new t.Cartesian3,E=new t.Cartesian3,w=new t.Cartesian3;function F(n){const a=(n=e.defaultValue(n,e.defaultValue.EMPTY_OBJECT)).positions,o=n.maximumHeights,r=n.minimumHeights,s=e.defaultValue(n.vertexFormat,l.VertexFormat.DEFAULT),m=e.defaultValue(n.granularity,i.CesiumMath.RADIANS_PER_DEGREE),u=e.defaultValue(n.ellipsoid,t.Ellipsoid.WGS84);this._positions=a,this._minimumHeights=r,this._maximumHeights=o,this._vertexFormat=l.VertexFormat.clone(s),this._granularity=m,this._ellipsoid=t.Ellipsoid.clone(u),this._workerName="createWallGeometry";let p=1+a.length*t.Cartesian3.packedLength+2;e.defined(r)&&(p+=r.length),e.defined(o)&&(p+=o.length),this.packedLength=p+t.Ellipsoid.packedLength+l.VertexFormat.packedLength+1}F.pack=function(n,i,a){let o;a=e.defaultValue(a,0);const r=n._positions;let s=r.length;for(i[a++]=s,o=0;o0)for(m=new Array(r),o=0;o0)for(u=new Array(r),o=0;o