/** * Cesium - https://github.com/CesiumGS/cesium * * Copyright 2011-2020 Cesium Contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Columbus View (Pat. Pend.) * * Portions licensed separately. * See https://github.com/CesiumGS/cesium/blob/master/LICENSE.md for full licensing details. */ define(["exports","./when-8d13db60","./Check-70bec281","./Math-61ede240","./Cartographic-f27b0939","./Cartesian2-09435a6c","./BoundingSphere-c409f092","./ComponentDatatype-5862616f","./GeometryAttribute-2243653a","./PrimitiveType-97893bc7","./Transforms-1509c877","./GeometryAttributes-aacecde6","./GeometryPipeline-8e55e413","./IndexDatatype-9435b55f","./arrayFill-9766fb2e","./GeometryOffsetAttribute-999fc023","./VertexFormat-fe4db402","./EllipseGeometryLibrary-d33811c0","./GeometryInstance-9ddb8c73"],function(e,U,f,c,Q,W,q,J,Z,v,K,X,_,C,$,ee,h,B,w){var te=new Q.Cartesian3,re=new Q.Cartesian3,ae=new Q.Cartesian3,ie=new Q.Cartesian3,ne=new W.Cartesian2,oe=new q.Matrix3,Y=new q.Matrix3,se=new K.Quaternion,le=new Q.Cartesian3,ue=new Q.Cartesian3,me=new Q.Cartesian3,pe=new Q.Cartographic,ce=new Q.Cartesian3,ye=new W.Cartesian2,de=new W.Cartesian2;function M(e,t,r){var a=t.vertexFormat,i=t.center,n=t.semiMajorAxis,o=t.semiMinorAxis,s=t.ellipsoid,l=t.stRotation,u=r?e.length/3*2:e.length/3,m=t.shadowVolume,p=a.st?new Float32Array(2*u):void 0,c=a.normal?new Float32Array(3*u):void 0,y=a.tangent?new Float32Array(3*u):void 0,d=a.bitangent?new Float32Array(3*u):void 0,f=m?new Float32Array(3*u):void 0,h=0,A=le,x=ue,g=me,b=new q.GeographicProjection(s),v=b.project(s.cartesianToCartographic(i,pe),ce),_=s.scaleToGeodeticSurface(i,te);s.geodeticSurfaceNormal(_,_);var C=oe,w=Y;if(0!==l){var M=K.Quaternion.fromAxisAngle(_,l,se);C=q.Matrix3.fromQuaternion(M,C),M=K.Quaternion.fromAxisAngle(_,-l,se),w=q.Matrix3.fromQuaternion(M,w)}else C=q.Matrix3.clone(q.Matrix3.IDENTITY,C),w=q.Matrix3.clone(q.Matrix3.IDENTITY,w);for(var E=W.Cartesian2.fromElements(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,ye),I=W.Cartesian2.fromElements(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,de),T=e.length,G=r?T:0,N=G/3*2,P=0;Pc.CesiumMath.PI&&(p.north=0