Constructor
(abstract) new KeyframeInterpolant()
Methods
(static) copyValue(index, outBuffer) → {Array}
Copy the value for the specified index.
Parameters:
Name | Type | Description |
---|---|---|
index | Number | the index of the keyframe. |
outBuffer | Array | the output buffer to store the copied value. |
Returns:
- the output buffer to store the copied value.
- Type:
- Array
(static) getValueSize() → {Number}
Get the value size for keyframe values.
Returns:
- the value size.
- Type:
- Number
(static) interpolate(index0, ratio, duration, outBuffer) → {Array}
Interpolate the value for the specified time.
Parameters:
Name | Type | Description |
---|---|---|
index0 | Number | the index of the first keyframe. |
ratio | Number | the ratio (0-1) of the time passed between the first keyframe and the next keyframe. |
duration | Number | the duration time between the first keyframe and the next keyframe. |
outBuffer | Array | the output buffer to store the interpolated value. |
Returns:
- the output buffer to store the interpolated value.
- Type:
- Array