PackableForInterpolation

用于 Packable 类型的静态接口,这些类型在 与其打包值不同的表示形式。 这些方法和 应在构造函数上定义属性。
See:

Members

static Cesium.PackableForInterpolation.packedInterpolationLength : number

用于将对象以可插值形式存储到数组中的元素数。

Methods

static Cesium.PackableForInterpolation.convertPackedArrayForInterpolation(packedArray, startingIndex, lastIndex, result)

将打包数组转换为适合插值的形式。
Name Type Default Description
packedArray Array.<number> 打包数组。
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 要在其中存储结果的对象。

static Cesium.PackableForInterpolation.unpackInterpolationResult(array, sourceArray, startingIndex, lastIndex, result)object

Name Type Default Description
array Array.<number> 先前打包用于插值的数组。
sourceArray Array.<number> 原始打包数组。
startingIndex number 0 optional 用于转换数组的 startingIndex。
lastIndex number packedArray.length optional 用于转换数组的 lastIndex。
result object optional 要在其中存储结果的对象。
Returns:
修改后的结果参数或者一个新的 Object 实例(如果未提供)。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.