静态接口 Static interface for
Packable 以与其打包值不同的表示形式进行插值的类型。这些方法和属性预计在构造函数上定义。 types which are interpolated in a different representation than their packed value. These methods and properties are expected to be defined on a constructor function.另见: See:
成员 Members
用于将对象以其可插值形式存储到数组中的元素数量。 The number of elements used to store the object into an array in its interpolatable form.
方法 Methods
static Cesium.PackableForInterpolation.convertPackedArrayForInterpolation(packedArray, startingIndex, lastIndex, result)
将打包数组转换为适合插值的形式。 Converts a packed array into a form suitable for interpolation.
| 名称 Name | 类型 Type | 默认值 Default | 说明 Description |
|---|---|---|---|
packedArray |
Array.<number> | 打包的数组。 The packed array. | |
startingIndex |
number |
0
|
可选 optional 要转换的第一个元素的索引。 The index of the first element to be converted. |
lastIndex |
number |
packedArray.length
|
可选 optional 要转换的最后一个元素的索引。 The index of the last element to be converted. |
result |
Array.<number> | 可选 optional 用于存储结果的对象。 The object into which to store the result. |
static Cesium.PackableForInterpolation.unpackInterpolationResult(array, sourceArray, startingIndex, lastIndex, result) → object
从转换后的打包数组中检索实例 Retrieves an instance from a packed array converted with
PackableForInterpolation.convertPackedArrayForInterpolation.
| 名称 Name | 类型 Type | 默认值 Default | 说明 Description |
|---|---|---|---|
array |
Array.<number> | 之前打包用于插值的数组。 The array previously packed for interpolation. | |
sourceArray |
Array.<number> | 原始打包数组。 The original packed array. | |
startingIndex |
number |
0
|
可选 optional 用于转换数组的起始索引。 The startingIndex used to convert the array. |
lastIndex |
number |
packedArray.length
|
可选 optional 用于转换数组的lastIndex。 The lastIndex used to convert the array. |
result |
object | 可选 optional 用于存储结果的对象。 The object into which to store the result. |
返回: Returns:
修改后的结果参数或新的对象实例(如果未提供)。 The modified result parameter or a new Object instance if one was not provided.
