copySampleValue method
Implementation
copySampleValue(index) {
// Copies a sample value to the result buffer. See description of glTF
// CUBICSPLINE values layout in interpolate() function below.
var result = this.resultBuffer,
values = this.sampleValues,
valueSize = this.valueSize,
offset = index * valueSize * 3 + valueSize;
for (int i = 0; i < valueSize; i++) {
result[i] = values[offset + i];
}
return result;
}