addScaled method

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

Add arg scaled by factor to this.

Implementation

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