dist static method

double dist(
  1. Vec a,
  2. Vec b
)

Implementation

static double dist(Vec a, Vec b) =>
    sqrt(pow(a.x - b.x, 2) + pow(a.y - b.y, 2));