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:

Members

staticPackableForInterpolation.packedInterpolationLength :Number

The number of elements used to store the object into an array in its interpolatable form.

Methods

staticPackableForInterpolation.convertPackedArrayForInterpolation(packedArray, startingIndex, lastIndex, result)

Converts a packed array into a form suitable for interpolation.
Name Type Default Description
packedArray Array.<Number> The packed array.
startingIndex Number 0 optional The index of the first element to be converted.
lastIndex Number packedArray.length optional The index of the last element to be converted.
result Array.<Number> optional The object into which to store the result.

staticPackableForInterpolation.unpackInterpolationResult(array, sourceArray, startingIndex, lastIndex, result)

Retrieves an instance from a packed array converted with PackableForInterpolation.convertPackedArrayForInterpolation.
Name Type Default Description
array Array.<Number> The original packed array.
sourceArray Array.<Number> The converted array.
startingIndex Number 0 optional The startingIndex used to convert the array.
lastIndex Number packedArray.length optional The lastIndex used to convert the array.
result Object optional The object into which to store the result.