addScaled method

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

Add arg scaled by factor to this.

Implementation

void addScaled(Vector3 arg, double factor) {
  final argStorage = arg._v3storage;
  _v3storage[0] = _v3storage[0] + argStorage[0] * factor;
  _v3storage[1] = _v3storage[1] + argStorage[1] * factor;
  _v3storage[2] = _v3storage[2] + argStorage[2] * factor;
}