multiply method

void multiply(
  1. int index,
  2. Vector4 vector
)

Multiply the vector at index by vector.

Implementation

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