NearFarScalar

new Cesium.NearFarScalar(near, nearValue, far, farValue)

Represents a scalar value's lower and upper bound at a near distance and far distance in eye space.
参数名称 类型 默认值 描述信息
near number 0.0 可选 The lower bound of the camera range.
nearValue number 0.0 可选 The value at the lower bound of the camera range.
far number 1.0 可选 The upper bound of the camera range.
farValue number 0.0 可选 The value at the upper bound of the camera range.
参考:

成员(属性)

static Cesium.NearFarScalar.packedLength : number

The number of elements used to pack the object into an array.
The upper bound of the camera range.
默认值: 1.0
The value at the upper bound of the camera range.
默认值: 0.0
The lower bound of the camera range.
默认值: 0.0
The value at the lower bound of the camera range.
默认值: 0.0

方法

static Cesium.NearFarScalar.clone(nearFarScalar, result)NearFarScalar

Duplicates a NearFarScalar instance.
参数名称 类型 描述信息
nearFarScalar NearFarScalar The NearFarScalar to duplicate.
result NearFarScalar 可选 The object onto which to store the result.
返回值:
The modified result parameter or a new NearFarScalar instance if one was not provided. (Returns undefined if nearFarScalar is undefined)

static Cesium.NearFarScalar.equals(left, right)boolean

Compares the provided NearFarScalar and returns true if they are equal, false otherwise.
参数名称 类型 描述信息
left NearFarScalar 可选 The first NearFarScalar.
right NearFarScalar 可选 The second NearFarScalar.
返回值:
true if left and right are equal; otherwise false.

static Cesium.NearFarScalar.pack(value, array, startingIndex)Array.<number>

Stores the provided instance into the provided array.
参数名称 类型 默认值 描述信息
value NearFarScalar The value to pack.
array Array.<number> The array to pack into.
startingIndex number 0 可选 The index into the array at which to start packing the elements.
返回值:
The array that was packed into

static Cesium.NearFarScalar.unpack(array, startingIndex, result)NearFarScalar

Retrieves an instance from a packed array.
参数名称 类型 默认值 描述信息
array Array.<number> The packed array.
startingIndex number 0 可选 The starting index of the element to be unpacked.
result NearFarScalar 可选 The object into which to store the result.
返回值:
The modified result parameter or a new NearFarScalar instance if one was not provided.
Duplicates this instance.
参数名称 类型 描述信息
result NearFarScalar 可选 The object onto which to store the result.
返回值:
The modified result parameter or a new NearFarScalar instance if one was not provided.

equals(right)boolean

Compares this instance to the provided NearFarScalar and returns true if they are equal, false otherwise.
参数名称 类型 描述信息
right NearFarScalar 可选 The right hand side NearFarScalar.
返回值:
true if left and right are equal; otherwise false.