表示眼睛空间中近距离和远距离处标量值的下限和上限。 Represents a scalar value's lower and upper bound at a near distance and far distance in eye space.
| 名称 Name | 类型 Type | 默认值 Default | 说明 Description |
|---|---|---|---|
near |
number |
0.0
|
可选 optional 相机范围的下限。 The lower bound of the camera range. |
nearValue |
number |
0.0
|
可选 optional 相机范围下限的值。 The value at the lower bound of the camera range. |
far |
number |
1.0
|
可选 optional 相机范围的上限。 The upper bound of the camera range. |
farValue |
number |
0.0
|
可选 optional 相机范围上限的值。 The value at the upper bound of the camera range. |
另见: See:
成员 Members
用于将对象打包到数组中的元素数量。 The number of elements used to pack the object into an array.
相机范围的上限。 The upper bound of the camera range.
-
默认值: Default Value:
1.0
相机范围上限的值。 The value at the upper bound of the camera range.
-
默认值: Default Value:
0.0
相机范围的下限。 The lower bound of the camera range.
-
默认值: Default Value:
0.0
相机范围下限的值。 The value at the lower bound of the camera range.
-
默认值: Default Value:
0.0
方法 Methods
static Cesium.NearFarScalar.clone(nearFarScalar, result) → NearFarScalar
Duplicates a NearFarScalar instance.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
nearFarScalar |
NearFarScalar | 要复制的近远标量。 The NearFarScalar to duplicate. |
result |
NearFarScalar | 可选 optional 用于存储结果的对象。 The object onto which to store the result. |
返回: Returns:
修改后的结果参数或新的 NearFarScalar 实例(如果未提供)。 (如果nearFarScalar未定义,则返回未定义) The modified result parameter or a new NearFarScalar instance if one was not provided. (Returns undefined if nearFarScalar is undefined)
比较提供的 NearFarScalar 并返回 Compares the provided NearFarScalar and returns
true 如果它们相等, if they are equal,
false otherwise.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
left |
NearFarScalar | 可选 optional 第一个近远标量。 The first NearFarScalar. |
right |
NearFarScalar | 可选 optional 第二个近远标量。 The second NearFarScalar. |
返回: Returns:
true 如果左和右相等;否则 if left and right are equal; otherwise false.
将提供的实例存储到提供的数组中。 Stores the provided instance into the provided array.
| 名称 Name | 类型 Type | 默认值 Default | 说明 Description |
|---|---|---|---|
value |
NearFarScalar | 包装的价值。 The value to pack. | |
array |
Array.<number> | 要打包到的数组。 The array to pack into. | |
startingIndex |
number |
0
|
可选 optional 开始打包元素的数组索引。 The index into the array at which to start packing the elements. |
返回: Returns:
被打包成的数组 The array that was packed into
static Cesium.NearFarScalar.unpack(array, startingIndex, result) → NearFarScalar
从打包数组中检索实例。 Retrieves an instance from a packed array.
| 名称 Name | 类型 Type | 默认值 Default | 说明 Description |
|---|---|---|---|
array |
Array.<number> | 打包的数组。 The packed array. | |
startingIndex |
number |
0
|
可选 optional 要解包的元素的起始索引。 The starting index of the element to be unpacked. |
result |
NearFarScalar | 可选 optional 用于存储结果的对象。 The object into which to store the result. |
返回: Returns:
修改后的结果参数或新的 NearFarScalar 实例(如果未提供)。 The modified result parameter or a new NearFarScalar instance if one was not provided.
clone(result) → NearFarScalar
复制此实例。 Duplicates this instance.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
result |
NearFarScalar | 可选 optional 用于存储结果的对象。 The object onto which to store the result. |
返回: Returns:
修改后的结果参数或新的 NearFarScalar 实例(如果未提供)。 The modified result parameter or a new NearFarScalar instance if one was not provided.
将此实例与提供的 NearFarScalar 进行比较并返回 Compares this instance to the provided NearFarScalar and returns
true 如果它们相等, if they are equal,
false otherwise.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
right |
NearFarScalar | 可选 optional 右侧近远标量。 The right hand side NearFarScalar. |
返回: Returns:
true 如果左和右相等;否则 if left and right are equal; otherwise false.
