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

@param {Array} point1 first point coordinates
@param {Array} point2 second point coordinates
@return {Number} distance