mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-01-14 18:28:14 -05:00
fix dijkstra hypot check bug (#522)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user