subVec static method

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

Implementation

static Vec subVec(Vec a, Vec b) => Vec(a.x - b.x, a.y - b.y);