setXYZW method

  1. @override
InterleavedBufferAttribute setXYZW(
  1. int index,
  2. dynamic x,
  3. dynamic y,
  4. dynamic z,
  5. dynamic w,
)
override

Implementation

@override
InterleavedBufferAttribute setXYZW(int index, x, y, z, w) {
  index = index * data!.stride + offset;

  data!.array[index + 0] = x;
  data!.array[index + 1] = y;
  data!.array[index + 2] = z;
  data!.array[index + 3] = w;

  return this;
}