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;
}
Scale the vector at index
by factor
.
void scale(int index, double factor) {
final i = _vectorIndexToBufferIndex(index);
buffer[i + 0] *= factor;
buffer[i + 1] *= factor;
}