define(["exports","./Cartesian3-7e9cc2ff","./Math-5f585871","./Matrix4-d34187af","./Transforms-98ffa11d"],(function(a,t,e,n,i){"use strict";const r={},s=new t.Cartesian3,o=new t.Cartesian3,l=new i.Quaternion,c=new n.Matrix3;function C(a,e,r,C,y,u,m,h,x,M){const f=a+e;t.Cartesian3.multiplyByScalar(C,Math.cos(f),s),t.Cartesian3.multiplyByScalar(r,Math.sin(f),o),t.Cartesian3.add(s,o,s);let z=Math.cos(a);z*=z;let d=Math.sin(a);d*=d;const _=u/Math.sqrt(m*z+y*d)/h;return i.Quaternion.fromAxisAngle(s,_,l),n.Matrix3.fromQuaternion(l,c),n.Matrix3.multiplyByVector(c,x,M),t.Cartesian3.normalize(M,M),t.Cartesian3.multiplyByScalar(M,h,M),M}const y=new t.Cartesian3,u=new t.Cartesian3,m=new t.Cartesian3,h=new t.Cartesian3;r.raisePositionsToHeight=function(a,e,n){const i=e.ellipsoid,r=e.height,s=e.extrudedHeight,o=n?a.length/3*2:a.length/3,l=new Float64Array(3*o),c=a.length,C=n?c:0;for(let e=0;e1;--Q){if(I=e.CesiumMath.PI_OVER_TWO-(Q-1)*T,V=C(-I,o,w,p,h,d,z,_,O,V),A=C(I+Math.PI,o,w,p,h,d,z,_,O,A),n){for(g[E++]=V.x,g[E++]=V.y,g[E++]=V.z,v=2*(Q-1)+2,b=1;b