addVec static method

Vec addVec(
  1. Vec a,
  2. Vec b
)

Implementation

static Vec addVec(Vec a, Vec b) => Vec(a.x + b.x, a.y + b.y);