define(["exports","./Matrix3-a3d5aaa7","./Math-76ce6367","./Transforms-05535772"],(function(t,a,e,n){"use strict";const i={},r=new a.Cartesian3,s=new a.Cartesian3,o=new n.Quaternion,l=new a.Matrix3;function c(t,e,i,c,C,u,y,m,h,x){const M=t+e;a.Cartesian3.multiplyByScalar(c,Math.cos(M),r),a.Cartesian3.multiplyByScalar(i,Math.sin(M),s),a.Cartesian3.add(r,s,r);let f=Math.cos(t);f*=f;let z=Math.sin(t);z*=z;const d=u/Math.sqrt(y*f+C*z)/m;return n.Quaternion.fromAxisAngle(r,d,o),a.Matrix3.fromQuaternion(o,l),a.Matrix3.multiplyByVector(l,h,x),a.Cartesian3.normalize(x,x),a.Cartesian3.multiplyByScalar(x,m,x),x}i.pointOnEllipsoid=function(t,a,e,n,i,r,s,o,l,C){return c(t,a,e,n,i,r,s,o,l,C)};const C=new a.Cartesian3,u=new a.Cartesian3,y=new a.Cartesian3,m=new a.Cartesian3;i.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,h=n?c:0;for(let e=0;e1;--v){if(E=e.CesiumMath.PI_OVER_TWO-(v-1)*T,V=c(-E,o,w,p,f,d,z,O,_,V),A=c(E+Math.PI,o,w,p,f,d,z,O,_,A),n){for(I[g++]=V.x,I[g++]=V.y,I[g++]=V.z,b=2*(v-1)+2,Q=1;Q