根据相机的距离确定能见度.
| Name | Type | Default | Description |
|---|---|---|---|
near |
number |
0.0
|
optional 物体可见间隔中最小的距离. |
far |
number |
Number.MAX_VALUE
|
optional The largest distance in the interval where the object is visible. |
Example:
// Make a billboard that is only visible when the distance to the camera is between 10 and 20 meters.
billboard.distanceDisplayCondition = new Cesium.DistanceDisplayCondition(10.0, 20.0);
Members
Methods
static Cesium.DistanceDisplayCondition.clone(value, result) → DistanceDisplayCondition
复制远程显示条件实例 .
| Name | Type | Description |
|---|---|---|
value |
DistanceDisplayCondition | optional 要复制的距离显示条件 . |
result |
DistanceDisplayCondition | optional 用于存储结果的结果 . |
Returns:
重复实例.
确定两个距离显示条件是否相等.
| Name | Type | Description |
|---|---|---|
left |
DistanceDisplayCondition | optional 距离显示条件 . |
right |
DistanceDisplayCondition | optional 另一个远程显示条件. |
Returns:
两种距离显示条件是否相等 .
将所提供的实例存储到所提供的数组中.
| Name | Type | Default | Description |
|---|---|---|---|
value |
DistanceDisplayCondition | 包装的价值. | |
array |
Array.<number> | 装入的阵列. | |
startingIndex |
number |
0
|
optional The index into the array at which to start packing the elements. |
Returns:
装入的阵列
static Cesium.DistanceDisplayCondition.unpack(array, startingIndex, result) → DistanceDisplayCondition
从组合的数组中获取实例 .
| Name | Type | Default | Description |
|---|---|---|---|
array |
Array.<number> | 装填的阵列. | |
startingIndex |
number |
0
|
optional The starting index of the element to be unpacked. |
result |
DistanceDisplayCondition | optional 存储结果的对象. |
Returns:
如果未提供修改的结果参数或新的远程显示条件实例.
clone(result) → DistanceDisplayCondition
重复这个例子.
| Name | Type | Description |
|---|---|---|
result |
DistanceDisplayCondition | optional 用于存储结果的结果 . |
Returns:
重复实例.
确定此距离显示条件是否等于另一个条件.
| Name | Type | Description |
|---|---|---|
other |
DistanceDisplayCondition | optional 另一个远程显示条件. |
Returns:
此距离显示条件是否与其他条件相等 .