setY method

BufferAttribute<NativeArray<num>> setY(
  1. int index,
  2. num y
)

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

Implementation

BufferAttribute setY(int index, num y) {
  array[index * itemSize + 1] = y;

  return this;
}