scale method

V2 scale(
  1. num o
)

Returns a new vector with all components scaled by o.

Implementation

V2 scale(num o) => _v2(x * o, y * o);