setX method

  1. @override
InterleavedBufferAttribute setX(
  1. int index,
  2. num x
)
override

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

Implementation

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