PackableForInterpolation
Interface for Packable objects which are interpolated in a different representation than their packed value.
- {Packable}
See:
Source:
Members
-
<static> packedInterpolationLength :Number
-
The number of elements used to store the object into an array in its interpolatable form.
Methods
-
<static> convertPackedArrayForInterpolation
-
Converts a packed array into a form suitable for interpolation.
Parameters:
Name Type Argument Default Description packedArray
Array The packed array. startingIndex
Number <optional>
0 The index of the first element to be converted. lastIndex
Number <optional>
packedArray.length The index of the last element to be converted. result
Array <optional>
The object into which to store the result. Throws:
DeveloperError : packedArray is required. -
<static> unpackInterpolationResult
-
Retrieves an instance from a packed array converted with convertPackedArrayForInterpolation.
Parameters:
Name Type Argument Default Description array
Array The original packed array. sourceArray
Array The converted array. startingIndex
Number <optional>
0 The startingIndex used to convert the array. lastIndex
Number <optional>
packedArray.length The lastIndex used to convert the array. result
Object <optional>
The object into which to store the result. Throws:
-
DeveloperError : array is required.
-
DeveloperError : sourceArray is required.
-