add method

Vector2 add(
  1. Vector2 v, {
  2. Vector2? w,
})

Implementation

Vector2 add(Vector2 v, {Vector2? w}) {
  if (w != null) {
    print(
        'THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead.');
    return addVectors(v, w);
  }

  x += v.x;
  y += v.y;

  return this;
}