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