addScaled method

void addScaled (int index, Vector4 vector, double factor)

Add vector scaled by factor to the vector at index.

Implementation

void addScaled(int index, Vector4 vector, double factor) {
  final int i = _vectorIndexToBufferIndex(index);
  final Float32List storage = vector.storage;
  buffer[i + 0] += storage[0] * factor;
  buffer[i + 1] += storage[1] * factor;
  buffer[i + 2] += storage[2] * factor;
  buffer[i + 3] += storage[3] * factor;
}