function calcDistance(pointA, pointB) {
    return Math.sqrt(Math.pow(pointA.x - pointB.x, 2) + Math.pow(pointA.y - pointB.y, 2));
}
@typedef {Object} Point
@property {number} x
@property {number} y
@param {Point} pointA
@param {Point} pointB
@return {number}