feat: routes - change data format, fix issues

This commit is contained in:
Azgaar 2024-08-09 15:14:22 +02:00
parent 077248e4d9
commit 19723bd513
8 changed files with 260 additions and 243 deletions

View file

@ -27,5 +27,5 @@ function nest(values, map, reduce, keys) {
}
function dist2([x1, y1], [x2, y2]) {
return (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2);
return (x1 - x2) ** 2 + (y1 - y2) ** 2;
}