sub method

V2 sub(
  1. V2 o
)

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

Implementation

V2 sub(V2 o) => _v2(x - o.x, y - o.y);