KeyframeTrack constructor
KeyframeTrack(
- String name,
- dynamic times,
- dynamic values, [
- 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);
}