# PackableForInterpolation

engine/Source/Core/PackableForInterpolation.js 3
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:

- Packable

### Members

#### static Cesium.PackableForInterpolation.packedInterpolationLength : number
engine/Source/Core/PackableForInterpolation.js 17

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

### Methods

#### static Cesium.PackableForInterpolation.convertPackedArrayForInterpolation(packedArray, startingIndex, lastIndex, result)
engine/Source/Core/PackableForInterpolation.js 28

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.

#### static Cesium.PackableForInterpolation.unpackInterpolationResult(array, sourceArray, startingIndex, lastIndex, result) → object
engine/Source/Core/PackableForInterpolation.js 41

Retrieves an instance from a packed array converted with `PackableForInterpolation.convertPackedArrayForInterpolation`.

Name | Type | Default | Description
--- | --- | --- | ---
`array` | Array.<number> |  | The array previously packed for interpolation.
`sourceArray` | Array.<number> |  | The original packed 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.

##### Returns:

The modified result parameter or a new Object instance if one was not provided.

Need help? The fastest way to get answers is from the community and team on the Cesium Forum.