KeyframeTrack constructor

KeyframeTrack(
  1. String name,
  2. dynamic times,
  3. dynamic values, [
  4. dynamic interpolation,
])

Implementation

KeyframeTrack(this.name, times, values, [interpolation]) {
  if (times == null || times.length == 0) {
    throw ('three.KeyframeTrack: no keyframes in track named $name');
  }

  _interpolation = interpolation;
  this.times = AnimationUtils.convertArray(times, timeBufferType, false);
  this.values = AnimationUtils.convertArray(values, valueBufferType, false);

  setInterpolation(interpolation ?? defaultInterpolation);
}