addScalar method

Vector2 addScalar(
  1. num s
)

Implementation

Vector2 addScalar(num s) {
  x += s;
  y += s;

  return this;
}