mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 12:33:07 +00:00
6 lines
142 B
TypeScript
6 lines
142 B
TypeScript
|
function distance([x1, y1]: [number, number], [x2, y2]: [number, number]) {
|
||
|
return Math.hypot(x1 - x2, y1 - y2);
|
||
|
}
|
||
|
|
||
|
export default distance;
|