Skip to content

Commit

Permalink
adjusted formating
Browse files Browse the repository at this point in the history
  • Loading branch information
hahdookin committed Dec 2, 2021
1 parent a753f7b commit 12824e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/AStar.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#include "AStar.h"

#define distance(a, b) \
(isqrt( (a->pos.x - b->pos.x) * (a->pos.x - b->pos.x) + (a->pos.y - b->pos.y) * (a->pos.y - b->pos.y)))
(isqrt( \
(a->pos.x - b->pos.x) * (a->pos.x - b->pos.x) + \
(a->pos.y - b->pos.y) * (a->pos.y - b->pos.y) \
))

#define heuristic(a, b) (distance(a, b))

Expand Down

0 comments on commit 12824e2

Please sign in to comment.