setY method

  1. @override
InterleavedBufferAttribute setY(
  1. int index,
  2. num y
)
override

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

Implementation

@override
InterleavedBufferAttribute setY(int index, num y) {
  if ( this.normalized ) y = MathUtils.normalize( y, this.array );
  data!.array[index * data!.stride + offset + 1] = y.toDouble();
  return this;
}