export const calcDistanceBetweenTwoPoints = (x1, y1, x2, y2) => { const a = x1 - x2; const b = y1 - y2; return Math.sqrt(a * a + b * b); };