How to use the LinearInterpolant function from three

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

336
337
338
339
340
341
342
343
344
345
const tracksToRemove = [];
for (const track of tracks) {
  if (/\.position$/.test(track.name)) {
    const boneName = track.name.replace(/\.position$/, '');
    // const bone = bones.find(b => b.name === boneName);
    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);
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)