/**
 * Return distance between two points on 2 dimensions
 * @param  x1 coordinate as number
 * @param  y1 coordinate as number
 * @param  x2 coordinate as number
 * @param  y2 coordinate as number
 */
export const distanceBetweenTwoPoints2D = (x1, y1, x2 = 0, y2 = 0) => {
    const a = x1 - x2;
    const b = y1 - y2;
    const c = Math.sqrt(a * a + b * b);
    return c;
};
//# sourceMappingURL=distanceBetweenTwoPoints2D.js.map