PackableForInterpolation

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.
参考:

成员(属性)

static Cesium.PackableForInterpolation.packedInterpolationLength : number

The number of elements used to store the object into an array in its interpolatable form.

方法

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

Converts a packed array into a form suitable for interpolation.
参数名称 类型 默认值 描述信息
packedArray Array.<number> The packed array.
startingIndex number 0 可选 The index of the first element to be converted.
lastIndex number packedArray.length 可选 The index of the last element to be converted.
result Array.<number> 可选 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.
参数名称 类型 默认值 描述信息
array Array.<number> The array previously packed for interpolation.
sourceArray Array.<number> The original packed array.
startingIndex number 0 可选 The startingIndex used to convert the array.
lastIndex number packedArray.length 可选 The lastIndex used to convert the array.
result object 可选 The object into which to store the result.
返回值:
The modified result parameter or a new Object instance if one was not provided.