Packable
類型的靜態接口,這些類型以不同于其打包值的表示形式插入。這些方法和屬性應該在構造函數函數上定義。
- Packable
See:
Members
(static) packedInterpolationLength : Number
用于以可插值形式將對象存儲到數組中的元素數。
Methods
(static) convertPackedArrayForInterpolation(packedArray, startingIndex, lastIndex, result)
將壓縮數組轉換為適合插值的形式。
Parameters:
packedArray
(Array.<Number>)
壓縮數組。
startingIndex
(Number)
(default 0
)
要轉換的第一個元素的索引。
lastIndex
(Number)
(default packedArray.length
)
要轉換的最后一個元素的索引。
result
(Array.<Number>)
存儲結果的對象。
從用
PackableForInterpolation.convertPackedArrayForInterpolation
轉換的壓縮數組中檢索實例。
Parameters:
array
(Array.<Number>)
以前打包用于插值的數組。
sourceArray
(Array.<Number>)
原始壓縮數組。
startingIndex
(Number)
(default 0
)
用于轉換數組的StartingIndex。
lastIndex
(Number)
(default packedArray.length
)
用于轉換數組的最后一個索引。
result
(Object)
存儲結果的對象。