Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
miseyu committed Oct 2, 2024
1 parent c47dd9f commit 13728b1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ impl LineOnLineOverlayer {
if line_string.approx_eq(candidate, EPSILON) {
continue;
}
line_string.lines().zip(candidate.lines()).for_each(
|(line1, line2)| {
for line1 in line_string.lines() {
for line2 in candidate.lines() {
if let Some(reearth_flow_geometry::algorithm::line_intersection::LineIntersection::Collinear { intersection }) = line_intersection(line1, line2) {
intersect = true;
let line_float = Line2DFloat(intersection);
Expand All @@ -285,8 +285,8 @@ impl LineOnLineOverlayer {
}
}
}
},
);
}
}
}
if !intersect {
out_line_strings.push(line_string.clone());
Expand Down

0 comments on commit 13728b1

Please sign in to comment.