add method
V2
add(
- 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);
Returns a new vector that is the component-wise sum of this and o.
V2 add(V2 o) => _v2(x + o.x, y + o.y);