getDistanceBetween = (p1, p2) => (
  Math.sqrt(
    Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2)
  )
)
getDistanceBetween
Simple formula derived from pythagoras to calculate the distance between
2 points on a plane.

@param {Object} p1 - Our initial point
@param {Number} p1.x - The x value of our initial point
@param {Number} p1.y - The y value of our initial point
@param {Object} p2 - Our final point
@param {Number} p2.x - The x value of our final point
@param {Number} p2.y - The y value of our final point

@returns {Number} the distance between the points.