static distance(point1, point2) {
    const [x1, y1] = point1;
    const [x2, y2] = point2;

    return Math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2);
  }
Calculate distance between wo points
@param {Points} point1
@param {Points} point2