addScaled method

  1. @override
Vector2 addScaled(
  1. Vector v,
  2. double s
)
override

Implementation

@override
Vector2 addScaled(Vector v, double s) {
  x += v.x * s;
  y += v.y * s;

  return this;
}