add method

V2 add(
  1. V2 o
)

Returns a new vector that is the component-wise sum of this and o.

Implementation

V2 add(V2 o) => _v2(x + o.x, y + o.y);