Packable

可将值存储为数组中的打包元素的类型的静态接口。这些方法和属性应在构造函数上定义。
See:

Members

static Cesium.Packable.packedLength : number

用于将对象打包到数组中的元素数量。

Methods

static Cesium.Packable.pack(value, array, startingIndex)

将提供的实例存储到提供的数组中。
Name Type Default Description
value * 要打包的值。
array Array.<number> 要打包到的数组。
startingIndex number 0 optional 数组中开始打包元素的索引。

static Cesium.Packable.unpack(array, startingIndex, result)object

从打包的数组中检索实例。
Name Type Default Description
array Array.<number> 打包的数组。
startingIndex number 0 optional 要解包的元素起始索引。
result object optional 用于存储结果的对象。
Returns:
修改后的result参数,如果未提供则返回一个新的Object实例。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.