From b55af992ec4771468062944f572e92a9148b02ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Wed, 2 Feb 2022 09:38:30 +0100 Subject: [PATCH] Remove number of pathfinding nodes even further --- rust/src/pathfinder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/src/pathfinder.rs b/rust/src/pathfinder.rs index 22277b4..e4b6be7 100644 --- a/rust/src/pathfinder.rs +++ b/rust/src/pathfinder.rs @@ -177,7 +177,7 @@ impl Pathfinder { continue; } let angle_diff = angle2 - angle1; - if angle_diff < PI { + if angle_diff <= PI { continue; } let angle_between = angle_diff / 2.0 + angle1; @@ -186,7 +186,7 @@ impl Pathfinder { let angle1 = angles.last().unwrap(); let angle2 = angles.first().unwrap() + 2.0 * PI; let angle_diff = angle2 - angle1; - if angle_diff < PI { + if angle_diff <= PI { continue; } let angle_between = angle_diff / 2.0 + angle1;