setXY method

  1. @override
InterleavedBufferAttribute setXY(
  1. int index,
  2. dynamic x,
  3. dynamic y
)
override

Implementation

@override
InterleavedBufferAttribute setXY(int index, x, y) {
  index = index * data!.stride + offset;

  data!.array[index + 0] = x;
  data!.array[index + 1] = y;

  return this;
}