define(["exports","./Matrix2-9aa31791","./ComponentDatatype-93750d1a","./Transforms-d13cc04e"],(function(a,r,e,t){"use strict";var i={},n=new r.Cartesian3,s=new r.Cartesian3,o=new t.Quaternion,l=new r.Matrix3;function C(a,e,i,C,y,u,m,c,h,x){var M=a+e;r.Cartesian3.multiplyByScalar(C,Math.cos(M),n),r.Cartesian3.multiplyByScalar(i,Math.sin(M),s),r.Cartesian3.add(n,s,n);var z=Math.cos(a);z*=z;var f=Math.sin(a);f*=f;var d=u/Math.sqrt(m*z+y*f)/c;return t.Quaternion.fromAxisAngle(n,d,o),r.Matrix3.fromQuaternion(o,l),r.Matrix3.multiplyByVector(l,h,x),r.Cartesian3.normalize(x,x),r.Cartesian3.multiplyByScalar(x,c,x),x}var y=new r.Cartesian3,u=new r.Cartesian3,m=new r.Cartesian3,c=new r.Cartesian3;i.raisePositionsToHeight=function(a,e,t){for(var i=e.ellipsoid,n=e.height,s=e.extrudedHeight,o=t?a.length/3*2:a.length/3,l=new Float64Array(3*o),C=a.length,h=t?C:0,x=0;x1;--I){if(S=C(-(T=e.CesiumMath.PI_OVER_TWO-(I-1)*P),o,O,v,z,d,f,_,p,S),B=C(T+Math.PI,o,O,v,z,d,f,_,p,B),t){for(R[W++]=S.x,R[W++]=S.y,R[W++]=S.z,E=2*(I-1)+2,g=1;g