setZ method

BufferAttribute<NativeArray<num>> setZ(
  1. int index,
  2. num z
)

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

Implementation

BufferAttribute setZ(int index, num z) {
  array[index * itemSize + 2] = z;

  return this;
}