feat(pkg): Add pathfinding edge pkg to packages dir

This commit is contained in:
Braks
2022-05-22 22:46:47 +02:00
parent b9dbb97374
commit 4ee7eb909a
27 changed files with 6901 additions and 0 deletions
@@ -0,0 +1,5 @@
export const round = (x: number, multiple = 10) => Math.round(x / multiple) * multiple
export const roundDown = (x: number, multiple = 10) => Math.floor(x / multiple) * multiple
export const roundUp = (x: number, multiple = 10) => Math.ceil(x / multiple) * multiple