function getDistance(point1, point2) {
  return Math.hypot(point1[0] - point2[0], point1[1] - point2[1]);
}
Returns distance between two points

@param {Point} point1
@param {Point} point2
@returns {number}