sub method

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

Implementation

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

  x -= v.x;
  y -= v.y;

  return this;
}