Download node_modules/three/src/animation/tracks/QuaternionKeyframeTrack.js from SimWorld-AI/industrial-harbor-viewer: direct link, hf CLI and curl.
- Browser
- Download file 755 Bytes
-
https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/animation/tracks/QuaternionKeyframeTrack.js
- Command line
-
hf download hf://spaces/SimWorld-AI/industrial-harbor-viewer/node_modules/three/src/animation/tracks/QuaternionKeyframeTrack.js
-
curl -L -o QuaternionKeyframeTrack.js https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/animation/tracks/QuaternionKeyframeTrack.js
755 Bytes
| import { InterpolateLinear } from '../../constants.js'; | |
| import { KeyframeTrack } from '../KeyframeTrack.js'; | |
| import { QuaternionLinearInterpolant } from '../../math/interpolants/QuaternionLinearInterpolant.js'; | |
| /** | |
| * A Track of quaternion keyframe values. | |
| */ | |
| class QuaternionKeyframeTrack extends KeyframeTrack { | |
| InterpolantFactoryMethodLinear( result ) { | |
| return new QuaternionLinearInterpolant( this.times, this.values, this.getValueSize(), result ); | |
| } | |
| } | |
| QuaternionKeyframeTrack.prototype.ValueTypeName = 'quaternion'; | |
| // ValueBufferType is inherited | |
| QuaternionKeyframeTrack.prototype.DefaultInterpolation = InterpolateLinear; | |
| QuaternionKeyframeTrack.prototype.InterpolantFactoryMethodSmooth = undefined; | |
| export { QuaternionKeyframeTrack }; | |