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;