define(["exports","./Math-b81aa1f1","./Cartesian2-69a87134","./Transforms-184e6704"],function(a,R,W,h){"use strict";var r={},x=new W.Cartesian3,M=new W.Cartesian3,f=new h.Quaternion,z=new h.Matrix3;function S(a,r,e,i,t,n,s,o,l,C){var u=a+r;W.Cartesian3.multiplyByScalar(i,Math.cos(u),x),W.Cartesian3.multiplyByScalar(e,Math.sin(u),M),W.Cartesian3.add(x,M,x);var y=Math.cos(a);y*=y;var m=Math.sin(a);m*=m;var c=n/Math.sqrt(s*y+t*m)/o;return h.Quaternion.fromAxisAngle(x,c,f),h.Matrix3.fromQuaternion(f,z),h.Matrix3.multiplyByVector(z,l,C),W.Cartesian3.normalize(C,C),W.Cartesian3.multiplyByScalar(C,o,C),C}r.pointOnEllipsoid=function(a,r,e,i,t,n,s,o,l,C){return S(a,r,e,i,t,n,s,o,l,C)};var B=new W.Cartesian3,b=new W.Cartesian3,Q=new W.Cartesian3,O=new W.Cartesian3;r.raisePositionsToHeight=function(a,r,e){for(var i=r.ellipsoid,t=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,u=0;u