thelounge/client/dist/js/helpers/distance.js

6 lines
142 B
JavaScript
Raw Normal View History

2022-05-02 09:50:13 +02:00
function distance([x1, y1], [x2, y2]) {
return Math.hypot(x1 - x2, y1 - y2);
}
export default distance;
//# sourceMappingURL=distance.js.map