Skip to content

Commit

Permalink
Just a note to another georust API
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Jan 12, 2024
1 parent 4ce6b37 commit 88950ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/src/map_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,8 @@ fn linestring_intersection(ls1: &LineString, ls2: &LineString) -> Option<f64> {
return None;
}
// TODO Urgh very brute force
// TODO Could use https://docs.rs/geo/latest/geo/algorithm/sweep/struct.Intersections.html, but
// not sure about the order, so we'd do line_locate_point for everything and take the min
for line1 in ls1.lines() {
for line2 in ls2.lines() {
if let Some(LineIntersection::SinglePoint { intersection, .. }) =
Expand Down

0 comments on commit 88950ca

Please sign in to comment.