addScaledVector method

Vector2 addScaledVector(
  1. Vector2 v,
  2. double s
)

Implementation

Vector2 addScaledVector(Vector2 v, double s) {
  x += v.x * s;
  y += v.y * s;

  return this;
}