/** * Cesium - https://github.com/CesiumGS/cesium * * Copyright 2011-2020 Cesium Contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Columbus View (Pat. Pend.) * * Portions licensed separately. * See https://github.com/CesiumGS/cesium/blob/master/LICENSE.md for full licensing details. */ define(["exports","./Math-61ede240","./Cartographic-f27b0939","./BoundingSphere-c409f092","./Transforms-1509c877"],function(a,R,S,c,x){var r={},M=new S.Cartesian3,f=new S.Cartesian3,z=new x.Quaternion,d=new c.Matrix3;function W(a,r,e,i,t,n,s,o,l,C){var y=a+r;S.Cartesian3.multiplyByScalar(i,Math.cos(y),M),S.Cartesian3.multiplyByScalar(e,Math.sin(y),f),S.Cartesian3.add(M,f,M);var u=Math.cos(a);u*=u;var h=Math.sin(a);h*=h;var m=n/Math.sqrt(s*u+t*h)/o;return x.Quaternion.fromAxisAngle(M,m,z),c.Matrix3.fromQuaternion(z,d),c.Matrix3.multiplyByVector(d,l,C),S.Cartesian3.normalize(C,C),S.Cartesian3.multiplyByScalar(C,o,C),C}var B=new S.Cartesian3,b=new S.Cartesian3,Q=new S.Cartesian3,_=new S.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,y=0;y