/** * 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","./when-8d13db60","./Check-70bec281","./Math-61ede240","./Cartographic-f27b0939","./BoundingSphere-c409f092"],function(e,x,P,I,z,T){var U={};function d(e,r,t){var a=e+r;return I.CesiumMath.sign(e)!==I.CesiumMath.sign(r)&&Math.abs(a/Math.max(Math.abs(e),Math.abs(r)))=g[0]&&b[1]<=g[1]?[g[0],b[0],b[1],g[1]]:g[0]>=b[0]&&g[1]<=b[1]?[b[0],g[0],g[1],b[1]]:b[0]>g[0]&&b[0]=S[0]&&R[1]<=S[1]?[S[0],R[0],R[1],S[1]]:S[0]>=R[0]&&S[1]<=R[1]?[R[0],S[0],S[1],R[1]]:R[0]>S[0]&&R[0]z.Cartesian3.distance(e,r)))return x.defined(o)||(o=new z.Cartesian3),z.Cartesian3.multiplyByScalar(s.direction,u,o),z.Cartesian3.add(s.origin,o,o)};var p={root0:0,root1:0};function u(e,r,t){x.defined(t)||(t=new T.Interval);var a=e.origin,i=e.direction,n=r.center,o=r.radius*r.radius,s=z.Cartesian3.subtract(a,n,M),u=function(e,r,t,a){var i=r*r-4*e*t;if(!(i<0)){if(0o))return a.start=Math.max(a.start,0),a.stop=Math.min(a.stop,o),a};var C=new z.Cartesian3,q=new z.Cartesian3;function B(e,r,t){var a=e+r;return I.CesiumMath.sign(e)!==I.CesiumMath.sign(r)&&Math.abs(a/Math.max(Math.abs(e),Math.abs(r)))