scale method

  1. @override
Vector2 scale(
  1. num scalar
)
override

Implementation

@override
Vector2 scale(num scalar) {
  x *= scalar;
  y *= scalar;

  return this;
}