This repository has been archived on 2023-01-26. You can view files and clone it, but cannot push or open issues or pull requests.
|
export const calcDistanceBetweenTwoPoints = (x1, y1, x2, y2) => {
|
|
const a = x1 - x2;
|
|
const b = y1 - y2;
|
|
return Math.sqrt(a * a + b * b);
|
|
};
|