观景浮雕由6架飞机定义.
Each plane is represented by a
Cartesian4 object, where the x, y, and z components
定义平面正常的单位矢量, w 组件是
飞机从原产地/相机位置起飞.
| Name | Type | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
optional
具有下列属性的天体:
|
Example:
const maxRadii = ellipsoid.maximumRadius;
const frustum = new Cesium.OrthographicFrustum();
frustum.near = 0.01 * maxRadii;
frustum.far = 50.0 * maxRadii;
Members
用于将对象组合成数组的元素数量.
Frustum的宽度与其高度的宽度之比.
-
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
|
optional The index into the array at which to start packing the elements. |
Returns:
装入的阵列
static Cesium.OrthographicFrustum.unpack(array, startingIndex, result) → OrthographicFrustum
从组合的数组中获取实例 .
| Name | Type | Default | Description |
|---|---|---|---|
array |
Array.<number> | 装填的阵列. | |
startingIndex |
number |
0
|
optional The starting index of the element to be unpacked. |
result |
OrthographicFrustum | optional 存储结果的对象. |
Returns:
如果未提供经修改的结果参数或新的 OrthgraphicFrustum 实例.
clone(result) → OrthographicFrustum
返回 OrthographicFrustum 实例的复制件.
| Name | Type | Description |
|---|---|---|
result |
OrthographicFrustum | optional 存储结果的对象 . |
Returns:
如果未提供经修改的结果参数或新的 OrthgraphicFrustum 实例.
computeCullingVolume(position, direction, up) → CullingVolume
为这个 flustum 创建调制音量 .
| Name | Type | Description |
|---|---|---|
position |
Cartesian3 | 眼处. |
direction |
Cartesian3 | 风景方向. |
up |
Cartesian3 | 上升方向. |
Returns:
在给定的位置和方向上,有一个凸起的卷.
Example:
// Check if a bounding volume intersects the frustum.
const cullingVolume = frustum.computeCullingVolume(cameraPosition, cameraDirection, cameraUp);
const intersect = cullingVolume.computeVisibility(boundingVolume);
以 OrthographicFrustum 组件比较所提供的正统图像并返回
-NT+0+Treal NT+1+,如果两者是相等的, NT+2+false NT+3+否则.
| Name | Type | Description |
|---|---|---|
other |
OrthographicFrustum | optional 右手边的矫形十字架. |
Returns:
-NT+0+Treal NT+1+,如果两者是相等的, NT+2+false NT+3+否则.
以 OrthographicFrustum 组件比较所提供的正统图像并返回
如果通过绝对或相对耐性测试,
-NT+0+false NT+1+否则.
| Name | Type | Default | Description |
|---|---|---|---|
other |
OrthographicFrustum | 右手边的矫形十字架. | |
relativeEpsilon |
number | 相对epsilon的耐受性用于平等测试. | |
absoluteEpsilon |
number |
相对Epsilon
|
optional 绝对的埃皮西隆耐受性用于平等测试. |
Returns:
NT########################################################### ##################################################################################################################################################################################################.
getPixelDimensions(drawingBufferWidth, drawingBufferHeight, distance, pixelRatio, result) → Cartesian2
返回像素的宽度和高度,以米计.
| Name | Type | Description |
|---|---|---|
drawingBufferWidth |
number | 绘图缓冲器的宽度 . |
drawingBufferHeight |
number | 绘画缓冲器的高度. |
distance |
number | 距离近机以米计. |
pixelRatio |
number | 从像素空间到协调空间的缩放因子. |
result |
Cartesian2 | 存储结果的对象 . |
Returns:
The modified result parameter or a new instance of
Cartesian2 with the pixel's width and height in the x and y properties, respectively.
Throws:
-
DeveloperError : drawingBufferWidth must be greater than zero.
-
DeveloperError : drawingBufferHeight must be greater than zero.
-
DeveloperError : pixelRatio must be greater than zero.
Example:
// Example 1
// Get the width and height of a pixel.
const pixelSize = camera.frustum.getPixelDimensions(scene.drawingBufferWidth, scene.drawingBufferHeight, 0.0, scene.pixelRatio, new Cesium.Cartesian2());