setX method

BufferAttribute<NativeArray<num>> setX(
  1. int index,
  2. num x
)

Sets the x component of the vector at the given index.

Implementation

BufferAttribute setX(int index, num x) {
  array[index * itemSize] = x;
  return this;
}