scale method Null safety
Scale the vector at index
by factor
.
Implementation
void scale(int index, double factor) {
final i = _vectorIndexToBufferIndex(index);
buffer[i + 0] *= factor;
buffer[i + 1] *= factor;
buffer[i + 2] *= factor;
buffer[i + 3] *= factor;
}