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.- Source:
- See:
-
- Packable
Members
(static) packedInterpolationLength :Number
The number of elements used to store the object into an array in its interpolatable form.
Type:
- Number
- Source:
Methods
(static) convertPackedArrayForInterpolation(packedArray, startingIndexopt, lastIndexopt, result)
Converts a packed array into a form suitable for interpolation.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
packedArray |
Array.<Number> | 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.<Number> | The object into which to store the result. |
- Source:
(static) unpackInterpolationResult(array, sourceArray, startingIndexopt, lastIndexopt, resultopt) → {Object}
Retrieves an instance from a packed array converted with
PackableForInterpolation.convertPackedArrayForInterpolation
.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
array |
Array.<Number> | The array previously packed for interpolation. | ||
sourceArray |
Array.<Number> | The original packed 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. |
- Source:
Returns:
The modified result parameter or a new Object instance if one was not provided.
- Type
- Object