Buckets:
| import { KeyframeTrack } from '../KeyframeTrack.js'; | |
| import { QuaternionLinearInterpolant } from '../../math/interpolants/QuaternionLinearInterpolant.js'; | |
| /** | |
| * A track for Quaternion keyframe values. | |
| * | |
| * @augments KeyframeTrack | |
| */ | |
| class QuaternionKeyframeTrack extends KeyframeTrack { | |
| /** | |
| * Constructs a new Quaternion keyframe track. | |
| * | |
| * @param {string} name - The keyframe track's name. | |
| * @param {Array<number>} times - A list of keyframe times. | |
| * @param {Array<number>} values - A list of keyframe values. | |
| * @param {(InterpolateLinear|InterpolateDiscrete|InterpolateSmooth)} [interpolation] - The interpolation type. | |
| */ | |
| constructor( name, times, values, interpolation ) { | |
| super( name, times, values, interpolation ); | |
| } | |
| /** | |
| * Overwritten so the method returns Quaternion based interpolant. | |
| * | |
| * @static | |
| * @param {TypedArray} [result] - The result buffer. | |
| * @return {QuaternionLinearInterpolant} The new interpolant. | |
| */ | |
| InterpolantFactoryMethodLinear( result ) { | |
| return new QuaternionLinearInterpolant( this.times, this.values, this.getValueSize(), result ); | |
| } | |
| } | |
| /** | |
| * The value type name. | |
| * | |
| * @type {String} | |
| * @default 'quaternion' | |
| */ | |
| QuaternionKeyframeTrack.prototype.ValueTypeName = 'quaternion'; | |
| // ValueBufferType is inherited | |
| // DefaultInterpolation is inherited; | |
| QuaternionKeyframeTrack.prototype.InterpolantFactoryMethodSmooth = undefined; | |
| export { QuaternionKeyframeTrack }; | |
Xet Storage Details
- Size:
- 1.44 kB
- Xet hash:
- d9a0a82ef8744609879dd7e8702b0f28cc9dd9c7517c715c8acc0888c9234d49
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.