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.
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 packedArrayArray The packed array. startingIndexNumber <optional>
0 The index of the first element to be converted. lastIndexNumber <optional>
packedArray.length The index of the last element to be converted. resultArray <optional>
The object into which to store the result. -
<static> unpackInterpolationResult
-
Retrieves an instance from a packed array converted with convertPackedArrayForInterpolation.
Parameters:
Name Type Argument Default Description arrayArray The original packed array. sourceArrayArray The converted array. startingIndexNumber <optional>
0 The startingIndex used to convert the array. lastIndexNumber <optional>
packedArray.length The lastIndex used to convert the array. resultObject <optional>
The object into which to store the result.
