/** * Cesium - https://github.com/AnalyticalGraphicsInc/cesium * * Copyright 2011-2017 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 * * * 该版本修改了部分代码,主要是汉化、优化功能、添加接口 等 by 火星科技 http://marsgis.cn * 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/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md for full licensing details. */ define(["exports","./defined-b9ff0e39","./Check-e6691f86","./defaultValue-199f5aa8","./Math-92bd3539","./Cartesian2-8fa798b8","./defineProperties-ae15c9d5","./Transforms-a140c8a7","./ComponentDatatype-569c1e3e","./GeometryAttribute-928dddaf","./GeometryAttributes-c3465b51","./Plane-b9a516bb","./VertexFormat-b4c6d1c2"],function(t,V,e,M,i,F,a,P,E,k,R,f,l){"use strict";function h(t){this.planes=M.defaultValue(t,[])}var p=[new F.Cartesian3,new F.Cartesian3,new F.Cartesian3];F.Cartesian3.clone(F.Cartesian3.UNIT_X,p[0]),F.Cartesian3.clone(F.Cartesian3.UNIT_Y,p[1]),F.Cartesian3.clone(F.Cartesian3.UNIT_Z,p[2]);var d=new F.Cartesian3,c=new F.Cartesian3,u=new f.Plane(new F.Cartesian3(1,0,0),0);function n(t){t=M.defaultValue(t,M.defaultValue.EMPTY_OBJECT),this.left=t.left,this._left=void 0,this.right=t.right,this._right=void 0,this.top=t.top,this._top=void 0,this.bottom=t.bottom,this._bottom=void 0,this.near=M.defaultValue(t.near,1),this._near=this.near,this.far=M.defaultValue(t.far,5e8),this._far=this.far,this._cullingVolume=new h,this._orthographicMatrix=new P.Matrix4}function s(t){t.top===t._top&&t.bottom===t._bottom&&t.left===t._left&&t.right===t._right&&t.near===t._near&&t.far===t._far||(t._left=t.left,t._right=t.right,t._top=t.top,t._bottom=t.bottom,t._near=t.near,t._far=t.far,t._orthographicMatrix=P.Matrix4.computeOrthographicOffCenter(t.left,t.right,t.bottom,t.top,t.near,t.far,t._orthographicMatrix))}h.fromBoundingSphere=function(t,e){V.defined(e)||(e=new h);var a=p.length,i=e.planes;i.length=2*a;for(var n=t.center,r=t.radius,o=0,s=0;s