How to use the QuaternionLinearInterpolant function from three

Find comprehensive JavaScript three.QuaternionLinearInterpolant code examples handpicked from public code repositorys.

341
342
343
344
345
346
347
348
349
350
  const boneInterpolant = new THREE.LinearInterpolant(track.times, track.values, track.getValueSize());
  bonePositionInterpolants[boneName] = boneInterpolant;
} else if (/\.quaternion$/.test(track.name)) {
  const boneName = track.name.replace(/\.quaternion$/, '');
  // const bone = bones.find(b => b.name === boneName);
  const boneInterpolant = new THREE.QuaternionLinearInterpolant(track.times, track.values, track.getValueSize());
  boneQuaternionInterpolants[boneName] = boneInterpolant;
} else if (/\.scale$/.test(track.name)) {
  if (allOnesEpsilon(track.values)) {
    const index = tracks.indexOf(track);
fork icon223
star icon301
watch icon0

+ 3 other calls in file

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)