代表在近距离和远距离的视距下方和上方的刻度值.
| Name | Type | Default | Description |
|---|---|---|---|
near |
number |
0.0
|
optional 相机范围下限. |
nearValue |
number |
0.0
|
optional 相机范围下限值. |
far |
number |
1.0
|
optional 摄像场的上界. |
farValue |
number |
0.0
|
optional 相机范围上方的值. |
See:
Members
Methods
static Cesium.NearFarScalar.clone(nearFarScalar, result) → NearFarScalar
复制近法斯卡拉尔实例.
| Name | Type | Description |
|---|---|---|
nearFarScalar |
NearFarScalar | 近法尔斯卡拉尔号要复制. |
result |
NearFarScalar | optional 存储结果的对象 . |
Returns:
The modified result parameter or a new NearFarScalar instance if one was not provided. (Returns undefined if nearFarScalar is undefined)
比较所提供的 NearFarScalar ,如果它们相等,则返回 NT 0 true NT 1 ,
-NT+0+false NT+1+否则.
| Name | Type | Description |
|---|---|---|
left |
NearFarScalar | optional 第一近法尔斯卡拉尔. |
right |
NearFarScalar | optional 第二近法尔斯卡拉. |
Returns:
如果左侧和右侧是相等的,则使用 NT+0 real NT+1 ;否则 NT+2 false NT+3 .
将所提供的实例存储到所提供的数组中.
| Name | Type | Default | Description |
|---|---|---|---|
value |
NearFarScalar | 包装的价值. | |
array |
Array.<number> | 装入的阵列. | |
startingIndex |
number |
0
|
optional The index into the array at which to start packing the elements. |
Returns:
装入的阵列
static Cesium.NearFarScalar.unpack(array, startingIndex, result) → NearFarScalar
从组合的数组中获取实例 .
| Name | Type | Default | Description |
|---|---|---|---|
array |
Array.<number> | 装填的阵列. | |
startingIndex |
number |
0
|
optional The starting index of the element to be unpacked. |
result |
NearFarScalar | optional 存储结果的对象. |
Returns:
如果未提供修改的结果参数, 或新建的 NearFarScalar 实例 .
clone(result) → NearFarScalar
重复这个例子.
| Name | Type | Description |
|---|---|---|
result |
NearFarScalar | optional 存储结果的对象 . |
Returns:
如果未提供修改的结果参数, 或新建的 NearFarScalar 实例 .
Compares this instance to the provided NearFarScalar and returns
true if they are equal,
-NT+0+false NT+1+否则.
| Name | Type | Description |
|---|---|---|
right |
NearFarScalar | optional 右手侧近法尔斯卡拉尔. |
Returns:
如果左侧和右侧是相等的,则使用 NT+0 real NT+1 ;否则 NT+2 false NT+3 .