setZ method

  1. @override
InterleavedBufferAttribute setZ(
  1. int index,
  2. num z
)
override

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

Implementation

@override
InterleavedBufferAttribute setZ(int index, num z) {
  data!.array[index * data!.stride + offset + 2] = z.toDouble();
  return this;
}