fix dijkstra hypot check bug (#522)

This commit is contained in:
mbosetti
2021-06-29 18:37:49 -05:00
committed by GitHub
parent 01874cee24
commit b0df3c7db3

View File

@@ -136,5 +136,5 @@ class DijkstraSearch:
@staticmethod
def is_same_node(node_a, node_b):
dist = np.hypot(node_a.x - node_b.x,
node_b.y - node_b.y)
node_a.y - node_b.y)
return dist <= 0.1