define(["exports","./Rectangle-82621db8","./Math-7a8129d6","./Transforms-b51fdb37"],function(a,A,W,h){"use strict";var r={},x=new A.Cartesian3,M=new A.Cartesian3,f=new h.Quaternion,z=new h.Matrix3;function S(a,r,e,t,i,n,s,o,l,C){var y=a+r;A.Cartesian3.multiplyByScalar(t,Math.cos(y),x),A.Cartesian3.multiplyByScalar(e,Math.sin(y),M),A.Cartesian3.add(x,M,x);var u=Math.cos(a);u*=u;var m=Math.sin(a);m*=m;var c=n/Math.sqrt(s*u+i*m)/o;return h.Quaternion.fromAxisAngle(x,c,f),h.Matrix3.fromQuaternion(f,z),h.Matrix3.multiplyByVector(z,l,C),A.Cartesian3.normalize(C,C),A.Cartesian3.multiplyByScalar(C,o,C),C}var B=new A.Cartesian3,b=new A.Cartesian3,Q=new A.Cartesian3,d=new A.Cartesian3;r.raisePositionsToHeight=function(a,r,e){for(var t=r.ellipsoid,i=r.height,n=r.extrudedHeight,s=e?a.length/3*2:a.length/3,o=new Float64Array(3*s),l=a.length,C=e?l:0,y=0;y