setW method

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

Implementation

BufferAttribute setW(int index, double w) {
  array[index * itemSize + 3] = w;

  return this;
}