function getDistancePointPoint(point1, point2) {

  return vectorLength({
    x: point1.x - point2.x,
    y: point1.y - point2.y
  });
}
Calculates the distance between two points.

@param {Point} point1
@param {Point} point2

@return {number}