function distanceSquareRoot(a, b) {
  return Math.sqrt(
    (a[0] - b[0]) * (a[0] - b[0])
    + (a[1] - b[1]) * (a[1] - b[1]),
  );
}
Returns the square root of the distance
between two given points.

@param {[number, number]} a the first point coordinates
@param {[number, number]} b the second point coordinates
@returns {number} the distance value