getDistanceBetweenPoints(x1, y1, x2, y2) {
    const y = x2 - x1
    const x = y2 - y1

    return Math.floor(Math.sqrt(x * x + y * y))
  }
Calculate the 2D distance between two points
@param x1
@param y1
@param x2
@param y2
@returns {number}