setXYZW method

BufferAttribute<NativeArray<num>> setXYZW(
  1. int index,
  2. dynamic x,
  3. dynamic y,
  4. dynamic z,
  5. dynamic w,
)

Implementation

BufferAttribute setXYZW(int index, x, y, z, w) {
  index *= itemSize;

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

  return this;
}