function getDistanceBetween(p1, p2) {
  const x = Math.abs(p1.x - p2.x);
  const y = Math.abs(p1.y - p2.y);
  return Math.sqrt(x * x + y * y);
}
Returns distance between two points.

@param {Point} p1
@param {Point} p2
@returns {number}