multiplyScalar method

Vector2 multiplyScalar(
  1. num scalar
)

Implementation

Vector2 multiplyScalar(num scalar) {
  x *= scalar;
  y *= scalar;

  return this;
}