addScaled method

void addScaled (
  1. Vector4 arg,
  2. double factor
)

Add arg scaled by factor to this.

Implementation

void addScaled(Vector4 arg, double factor) {
  final Float32List argStorage = arg._v4storage;
  _v4storage[0] = _v4storage[0] + argStorage[0] * factor;
  _v4storage[1] = _v4storage[1] + argStorage[1] * factor;
  _v4storage[2] = _v4storage[2] + argStorage[2] * factor;
  _v4storage[3] = _v4storage[3] + argStorage[3] * factor;
}