视锥由6个平面定义。每个平面都由
       
        
      
         Cartesian4
        
       
       对象表示,其中x,y和z分量定义垂直于平面的单位矢量,w分量是从原点/相机位置开始的平面。
      | Name | Type | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 
           options
           | Object | 可选
          
          具有以下属性的对象: 
 | 
Example:
var maxRadii = ellipsoid.maximumRadius;
var frustum = new Cesium.OrthographicFrustum();
frustum.near = 0.01 * maxRadii;
frustum.far = 50.0 * maxRadii;Members
      用于将对象打包到数组中的元素数。
     
     
      视锥的宽度与高度的纵横比。
     
     - 
      
       Default Value:
      
      
       undefined
      
     
      远平面的距离。
     
     - 
      
       Default Value:
      
      
       500000000.0;
      
     
      近平面的距离。
     
     - 
      
       Default Value:
      
      
       1.0
      
     readonly projectionMatrix : Matrix4
      获取根据视锥视图计算的正投影投影矩阵。
     
     
      视锥的水平宽度,以米为单位。
     
     - 
      
       Default Value:
      
      
       undefined
      
     Methods
      将提供的实例存储到提供的数组中。
     
     | Name | Type | Default | Description | 
|---|---|---|---|
| 
          value
          | OrthographicFrustum | 要打包的值。 | |
| 
          array
          | Array.<Number> | 要打包的数组。 | |
| 
          startingIndex
          | Number | 
          0
          | 可选 开始包装元素的数组索引。 | 
Returns:
   打包到的数组
  
 
     static Cesium.OrthographicFrustum.unpack (array, startingIndex , result ) → OrthographicFrustum
      从压缩数组中检索实例。
     
     | Name | Type | Default | Description | 
|---|---|---|---|
| 
          array
          | Array.<Number> | 压缩数组。 | |
| 
          startingIndex
          | Number | 
          0
          | 可选 要解压缩的元素的起始索引。 | 
| 
          result
          | OrthographicFrustum | 可选 将结果存储到的对象。 | 
Returns:
   修改后的结果参数,或者未提供新的OrthographicFrustum实例。
  
 
     clone ( result ) → OrthographicFrustum
      返回OrthographicFrustum实例的副本。
     
     | Name | Type | Description | 
|---|---|---|
| 
          result
          | OrthographicFrustum | 可选 将结果存储到的对象。 | 
Returns:
   修改后的结果参数,或者未提供新的OrthographicFrustum实例。
  
 
     computeCullingVolume (position, direction, up) → CullingVolume
      为此平截头体创建剔除体积。
     
     | Name | Type | Description | 
|---|---|---|
| 
          position
          | Cartesian3 | 眼睛位置。 | 
| 
          direction
          | Cartesian3 | 查看方向。 | 
| 
          up
          | Cartesian3 | 向上的方向。 | 
Returns:
   给定位置和方向的剔除体积。
  
 
     Example:
// Check if a bounding volume intersects the frustum.
var cullingVolume = frustum.computeCullingVolume(cameraPosition, cameraDirection, cameraUp);
var intersect = cullingVolume.computeVisibility(boundingVolume);
      比较提供的OrthographicFrustum组件并返回如果相等,则为
      
     
       true
      
      ,否则为
      
       false
      
      。
     | Name | Type | Description | 
|---|---|---|
| 
          other
          | OrthographicFrustum | 可选 右侧OrthographicFrustum。 | 
Returns:
    真正
   
   如果相等,
   
    假
   
   除此以外。
  
      比较提供的OrthographicFrustum组件并返回
      
     
       true
      
      如果它们通过绝对或相对公差测试,否则为
      
       false
      
      。
     | Name | Type | Default | Description | 
|---|---|---|---|
| 
          other
          | OrthographicFrustum | 右侧的正交视锥。 | |
| 
          relativeEpsilon
          | Number | 用于相等性测试的相对epsilon公差。 | |
| 
          absoluteEpsilon
          | Number | 
          relativeEpsilon
          | 可选 用于相等性测试的绝对epsilon公差。 | 
Returns:
    真正
   
   如果此等在提供的epsilon内,
   
    假
   
   除此以外。
  getPixelDimensions (drawingBufferWidth, drawingBufferHeight, distance, result) → Cartesian2
      返回像素的宽度和高度(以米为单位)。
     
     | Name | Type | Description | 
|---|---|---|
| 
          drawingBufferWidth
          | Number | 绘图缓冲区的宽度。 | 
| 
          drawingBufferHeight
          | Number | 绘图缓冲区的高度。 | 
| 
          distance
          | Number | 到附近飞机的距离,以米为单位。 | 
| 
          result
          | Cartesian2 | 将结果存储到的对象。 | 
Returns:
   修改后的结果参数或的新实例
   
    
 
     
     笛卡尔2
    
   
   分别在x和y属性中使用像素的宽度和高度。
  Throws:
- 
 
  DeveloperError :drawingBufferWidth必须大于零。
- 
 
  DeveloperError :drawingBufferHeight必须大于零。
Example:
// Example 1
// Get the width and height of a pixel.
var pixelSize = camera.frustum.getPixelDimensions(scene.drawingBufferWidth, scene.drawingBufferHeight, 0.0, new Cesium.Cartesian2());